18 stdenv.mkDerivation rec {
22 src = fetchFromGitLab {
23 domain = "code.videolan.org";
27 hash = "sha256-YEefuEfJURi5/wswQKskA/J1UGzessQQkBpltJ0Spq8=";
35 python3Packages.jinja2
50 "-Dvulkan-registry=${vulkan-headers}/share/vulkan/registry/vk.xml"
51 "-Ddemos=false" # Don't build and install the demo programs
52 "-Dd3d11=disabled" # Disable the Direct3D 11 based renderer
53 "-Dglslang=disabled" # rely on shaderc for GLSL compilation instead
54 ] ++ lib.optionals stdenv.isDarwin [
55 "-Dunwind=disabled" # libplacebo doesn’t build with `darwin.libunwind`
59 substituteInPlace meson.build \
60 --replace 'python_env.append' '#'
64 description = "Reusable library for GPU-accelerated video/image rendering primitives";
66 Reusable library for GPU-accelerated image/view processing primitives and
67 shaders, as well a batteries-included, extensible, high-quality rendering
68 pipeline (similar to mpv's vo_gpu). Supports Vulkan, OpenGL and Metal (via
71 homepage = "https://code.videolan.org/videolan/libplacebo";
72 changelog = "https://code.videolan.org/videolan/libplacebo/-/tags/v${version}";
73 license = licenses.lgpl21Plus;
74 maintainers = with maintainers; [ primeos tadeokondrak ];
75 platforms = platforms.all;