2019-07-08 13:49:41 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, vulkan-headers
|
|
|
|
, vulkan-loader
|
|
|
|
, shaderc
|
|
|
|
, glslang
|
|
|
|
, lcms2
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libplacebo";
|
2019-10-22 11:54:31 +01:00
|
|
|
version = "1.21.0";
|
2019-07-08 13:49:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "code.videolan.org";
|
|
|
|
owner = "videolan";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2019-10-22 11:54:31 +01:00
|
|
|
sha256 = "099qwla0yl76qw16lzdx33svyhx84p5gsa50ksy4828b18fy3bgb";
|
2019-07-08 13:49:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
vulkan-headers
|
|
|
|
vulkan-loader
|
|
|
|
shaderc
|
|
|
|
glslang
|
|
|
|
lcms2
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Reusable library for GPU-accelerated video/image rendering primitives";
|
|
|
|
homepage = "https://code.videolan.org/videolan/libplacebo";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|