Change:
Package name: Latest released version: <!-- Search your package here: --- Current version on the unstable channel: Current version on the stable/release channel: <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Please tag this issue in your PR.
Done here:

Discussion:
, libmtp , liboggz , libopus <del> , libplacebo </del> <ins> , libplacebo_5 </ins> , libpulseaudio , libraw1394 , librsvg

libmtp liboggz libopus <del> libplacebo </del> <ins> libplacebo_5 </ins> libpulseaudio libraw1394 librsvg

, libopenmpt , libopus , libplacebo <ins> , libplacebo_5 </ins> , libpulseaudio , libraw1394 , librsvg

++ optionals withIconv [ libiconv ] # On Linux this should be in libc, do we really need it? ++ optionals withJack [ libjack2 ] ++ optionals withLadspa [ ladspaH ] <del> ++ optionals withLibplacebo [ libplacebo vulkan-headers ] </del> <ins> ++ optionals withLibplacebo [ (if (lib.versionAtLeast version "6.1") then libplacebo else libplacebo_5) vulkan-headers ] </ins> ++ optionals withLzma [ xz ] ++ optionals withMfx [ intel-media-sdk ] ++ optionals withModplug [ libmodplug ]

<ins> { lib , stdenv , fetchFromGitLab , meson , ninja , pkg-config , python3Packages , vulkan-headers , vulkan-loader , shaderc , lcms2 , libGL , libX11 , libunwind , libdovi }: stdenv.mkDerivation rec { pname = "libplacebo"; version = "5.264.1"; src = fetchFromGitLab { domain = "code.videolan.org"; owner = "videolan"; repo = pname; rev = "v${version}"; hash = "sha256-YEefuEfJURi5/wswQKskA/J1UGzessQQkBpltJ0Spq8="; }; nativeBuildInputs = [ meson ninja pkg-config vulkan-headers python3Packages.jinja2 python3Packages.glad2 ]; buildInputs = [ vulkan-loader shaderc lcms2 libGL libX11 libunwind libdovi ]; mesonFlags = with lib; [ (mesonOption "vulkan-registry" "${vulkan-headers}/share/vulkan/registry/vk.xml") (mesonBool "demos" false) # Don't build and install the demo programs (mesonEnable "d3d11" false) # Disable the Direct3D 11 based renderer (mesonEnable "glslang" false) # rely on shaderc for GLSL compilation instead ] ++ optionals stdenv.isDarwin [ (mesonEnable "unwind" false) # libplacebo doesn’t build with `darwin.libunwind` ]; postPatch = '' substituteInPlace meson.build  --replace 'python_env.append' '#' ''; meta = with lib; { description = "Reusable library for GPU-accelerated video/image rendering primitives"; longDescription = '' Reusable library for GPU-accelerated image/view processing primitives and shaders, as well a batteries-included, extensible, high-quality rendering pipeline (similar to mpv's vo_gpu). Supports Vulkan, OpenGL and Metal (via MoltenVK). ''; homepage = "https://code.videolan.org/videolan/libplacebo"; changelog = "https://code.videolan.org/videolan/libplacebo/-/tags/v${version}"; license = licenses.lgpl21Plus; maintainers = with maintainers; [ primeos tadeokondrak ]; platforms = platforms.all; }; } </ins>

, shaderc , lcms2 , libGL <del> , xorg </del> <ins> , libX11 </ins> , libunwind , libdovi <ins> , xxHash </ins> }: stdenv.mkDerivation rec { pname = "libplacebo"; <del> version = "5.264.1"; </del> <ins> version = "6.338.1"; </ins> src = fetchFromGitLab { domain = "code.videolan.org"; owner = "videolan"; repo = pname; rev = "v${version}"; <del> hash = "sha256-YEefuEfJURi5/wswQKskA/J1UGzessQQkBpltJ0Spq8="; </del> <ins> hash = "sha256-NZmwR3+lIC2PF+k+kqCjoMYkMM/PKOJmDwAq7t6YONY="; </ins> }; nativeBuildInputs = [

shaderc lcms2 libGL <del> xorg.libX11 </del> <ins> libX11 </ins> libunwind libdovi <ins> xxHash </ins> ]; <del> mesonFlags = [ "-Dvulkan-registry=${vulkan-headers}/share/vulkan/registry/vk.xml" "-Ddemos=false" # Don't build and install the demo programs "-Dd3d11=disabled" # Disable the Direct3D 11 based renderer "-Dglslang=disabled" # rely on shaderc for GLSL compilation instead ] ++ lib.optionals stdenv.isDarwin [ "-Dunwind=disabled" # libplacebo doesn’t build with `darwin.libunwind` </del> <ins> mesonFlags = with lib; [ (mesonOption "vulkan-registry" "${vulkan-headers}/share/vulkan/registry/vk.xml") (mesonBool "demos" false) # Don't build and install the demo programs (mesonEnable "d3d11" false) # Disable the Direct3D 11 based renderer (mesonEnable "glslang" false) # rely on shaderc for GLSL compilation instead ] ++ optionals stdenv.isDarwin [ (mesonEnable "unwind" false) # libplacebo doesn’t build with `darwin.libunwind` </ins> ]; postPatch = ''

inherit (darwin.apple_sdk.frameworks) Foundation; }; <ins> libplacebo_5 = callPackage ../development/libraries/libplacebo/5.nix { }; </ins> libplacebo = callPackage ../development/libraries/libplacebo { }; libpng = callPackage ../development/libraries/libpng { };