diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libplacebo')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libplacebo/default.nix | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libplacebo/default.nix b/nixpkgs/pkgs/development/libraries/libplacebo/default.nix index 73d97a476559..60a3f8989578 100644 --- a/nixpkgs/pkgs/development/libraries/libplacebo/default.nix +++ b/nixpkgs/pkgs/development/libraries/libplacebo/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , fetchFromGitLab , meson , ninja @@ -7,53 +8,58 @@ , vulkan-headers , vulkan-loader , shaderc -, glslang , lcms2 -, libepoxy , libGL , xorg , libunwind +, libdovi }: stdenv.mkDerivation rec { pname = "libplacebo"; - version = "4.208.0"; + version = "5.264.1"; src = fetchFromGitLab { domain = "code.videolan.org"; owner = "videolan"; repo = pname; rev = "v${version}"; - sha256 = "161dp5781s74ca3gglaxlmchx7glyshf0wg43w98pl22n1jcm5qk"; + hash = "sha256-YEefuEfJURi5/wswQKskA/J1UGzessQQkBpltJ0Spq8="; }; nativeBuildInputs = [ meson ninja pkg-config - python3Packages.Mako + vulkan-headers + python3Packages.jinja2 + python3Packages.glad2 ]; buildInputs = [ - vulkan-headers vulkan-loader shaderc - glslang lcms2 - libepoxy libGL xorg.libX11 libunwind + libdovi ]; 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` ]; + postPatch = '' + substituteInPlace meson.build \ + --replace 'python_env.append' '#' + ''; + meta = with lib; { description = "Reusable library for GPU-accelerated video/image rendering primitives"; longDescription = '' |