nixpkgs/pkgs/development/libraries/libplacebo/default.nix

75 lines
1.8 KiB
Nix
Raw Normal View History

2019-07-08 12:49:41 +00:00
{ stdenv
, fetchFromGitLab
, fetchpatch
2019-07-08 12:49:41 +00:00
, meson
, ninja
2020-07-16 09:20:57 +00:00
, pkg-config
, python3Packages
2019-07-08 12:49:41 +00:00
, vulkan-headers
, vulkan-loader
, shaderc
, glslang
, lcms2
2020-07-16 09:20:57 +00:00
, epoxy
2021-01-01 18:46:25 +00:00
, libGL
, xorg
2019-07-08 12:49:41 +00:00
}:
stdenv.mkDerivation rec {
pname = "libplacebo";
2021-01-01 18:46:25 +00:00
version = "3.104.0";
2019-07-08 12:49:41 +00:00
patches = [
(fetchpatch {
# support glslang>=11.0.0; Upstream MR: https://code.videolan.org/videolan/libplacebo/-/merge_requests/131
url = "https://code.videolan.org/videolan/libplacebo/-/commit/affd15a2faa1340d40dcf277a8acffe2987f517c.patch";
sha256 = "1nm27mdm9rn3wsbjdif46pici6mbzmfb6521ijl8ah4mxn9p1ikc";
})
];
2019-07-08 12:49:41 +00:00
src = fetchFromGitLab {
domain = "code.videolan.org";
owner = "videolan";
repo = pname;
rev = "v${version}";
2021-01-01 18:46:25 +00:00
sha256 = "0p5mx8ch7cp7b54yrkl4fs8bcvqma1h461gx6ps4kagn4dsx8asb";
2019-07-08 12:49:41 +00:00
};
nativeBuildInputs = [
meson
ninja
2020-07-16 09:20:57 +00:00
pkg-config
python3Packages.Mako
2019-07-08 12:49:41 +00:00
];
buildInputs = [
vulkan-headers
vulkan-loader
shaderc
glslang
lcms2
2020-07-16 09:20:57 +00:00
epoxy
2021-01-01 18:46:25 +00:00
libGL
xorg.libX11
2020-07-16 09:20:57 +00:00
];
mesonFlags = [
"-Dvulkan-registry=${vulkan-headers}/share/vulkan/registry/vk.xml"
2019-07-08 12:49:41 +00:00
];
meta = with stdenv.lib; {
description = "Reusable library for GPU-accelerated video/image rendering primitives";
2020-07-16 09:20:57 +00: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 12:49:41 +00:00
homepage = "https://code.videolan.org/videolan/libplacebo";
2020-07-16 09:20:57 +00:00
changelog = "https://code.videolan.org/videolan/libplacebo/-/tags/v${version}";
2019-07-08 12:49:41 +00:00
license = licenses.lgpl21Plus;
2020-07-16 09:20:57 +00:00
maintainers = with maintainers; [ primeos tadeokondrak ];
2019-07-08 12:49:41 +00:00
platforms = platforms.all;
};
}