libplacebo: 5.264.1 -> 6.338.1

This commit is contained in:
rhododendrox 2023-12-01 20:52:31 +01:00
parent 14b1b88795
commit 2fecacbe0b

View file

@ -10,21 +10,22 @@
, shaderc
, lcms2
, libGL
, xorg
, libX11
, libunwind
, libdovi
, xxHash
}:
stdenv.mkDerivation rec {
pname = "libplacebo";
version = "5.264.1";
version = "6.338.1";
src = fetchFromGitLab {
domain = "code.videolan.org";
owner = "videolan";
repo = pname;
rev = "v${version}";
hash = "sha256-YEefuEfJURi5/wswQKskA/J1UGzessQQkBpltJ0Spq8=";
hash = "sha256-NZmwR3+lIC2PF+k+kqCjoMYkMM/PKOJmDwAq7t6YONY=";
};
nativeBuildInputs = [
@ -41,18 +42,19 @@ stdenv.mkDerivation rec {
shaderc
lcms2
libGL
xorg.libX11
libX11
libunwind
libdovi
xxHash
];
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 doesnt build with `darwin.libunwind`
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 doesnt build with `darwin.libunwind`
];
postPatch = ''