a97b1c8da0
GitOrigin-RevId: d235056d6d6dcbd2999bd55fd120d831d4df6304
66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitLab
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3Packages
|
|
, vulkan-headers
|
|
, vulkan-loader
|
|
, shaderc
|
|
, glslang
|
|
, lcms2
|
|
, epoxy
|
|
, libGL
|
|
, xorg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libplacebo";
|
|
version = "3.120.2";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "code.videolan.org";
|
|
owner = "videolan";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0wh5w7bx789ynnzr27xi0csql4jaxq80csawg6znabw3ld54wb86";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3Packages.Mako
|
|
];
|
|
|
|
buildInputs = [
|
|
vulkan-headers
|
|
vulkan-loader
|
|
shaderc
|
|
glslang
|
|
lcms2
|
|
epoxy
|
|
libGL
|
|
xorg.libX11
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dvulkan-registry=${vulkan-headers}/share/vulkan/registry/vk.xml"
|
|
"-Ddemos=false"
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|