Ilan Joselevich 2023-04-05 18:29:54 +03:00
parent dcf37baee7
commit 908d96fe1b
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitLab
, meson
, ninja
@ -8,40 +9,41 @@
, vulkan-loader
, shaderc
, 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
lcms2
libepoxy
libGL
xorg.libX11
libunwind
libdovi
];
mesonFlags = [
@ -53,6 +55,11 @@ stdenv.mkDerivation rec {
"-Dunwind=disabled" # libplacebo doesnt 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 = ''