2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-07-08 13:49:41 +01:00
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
2020-07-16 10:20:57 +01:00
|
|
|
, pkg-config
|
|
|
|
, python3Packages
|
2019-07-08 13:49:41 +01:00
|
|
|
, vulkan-headers
|
|
|
|
, vulkan-loader
|
|
|
|
, shaderc
|
|
|
|
, glslang
|
|
|
|
, lcms2
|
2020-07-16 10:20:57 +01:00
|
|
|
, epoxy
|
2021-01-01 18:46:25 +00:00
|
|
|
, libGL
|
|
|
|
, xorg
|
2019-07-08 13:49:41 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libplacebo";
|
2021-04-06 18:30:39 +01:00
|
|
|
version = "3.120.1";
|
2021-01-07 22:26:58 +00:00
|
|
|
|
2019-07-08 13:49:41 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "code.videolan.org";
|
|
|
|
owner = "videolan";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-06 18:30:39 +01:00
|
|
|
sha256 = "0x7jyzsdf884jrky4yci151pk4nzsz1w88wz8sk0cqing7bpaq16";
|
2019-07-08 13:49:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
2020-07-16 10:20:57 +01:00
|
|
|
pkg-config
|
|
|
|
python3Packages.Mako
|
2019-07-08 13:49:41 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
vulkan-headers
|
|
|
|
vulkan-loader
|
|
|
|
shaderc
|
|
|
|
glslang
|
|
|
|
lcms2
|
2020-07-16 10:20:57 +01:00
|
|
|
epoxy
|
2021-01-01 18:46:25 +00:00
|
|
|
libGL
|
|
|
|
xorg.libX11
|
2020-07-16 10:20:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dvulkan-registry=${vulkan-headers}/share/vulkan/registry/vk.xml"
|
2021-04-06 18:30:39 +01:00
|
|
|
"-Ddemos=false"
|
2019-07-08 13:49:41 +01:00
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-07-08 13:49:41 +01:00
|
|
|
description = "Reusable library for GPU-accelerated video/image rendering primitives";
|
2020-07-16 10:20:57 +01:00
|
|
|
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).
|
|
|
|
'';
|
2019-07-08 13:49:41 +01:00
|
|
|
homepage = "https://code.videolan.org/videolan/libplacebo";
|
2020-07-16 10:20:57 +01:00
|
|
|
changelog = "https://code.videolan.org/videolan/libplacebo/-/tags/v${version}";
|
2019-07-08 13:49:41 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-07-16 10:20:57 +01:00
|
|
|
maintainers = with maintainers; [ primeos tadeokondrak ];
|
2019-07-08 13:49:41 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|