vapoursynthPlugins.placebo: init at 1.3.1

This commit is contained in:
Simon Bruder 2021-01-23 10:26:07 +01:00 committed by Tadeo Kondrak
parent cd3dc48577
commit 1031932821
2 changed files with 43 additions and 0 deletions

View file

@ -22,6 +22,7 @@ self: super: {
mvtools = super.vapoursynth-mvtools;
nnedi3 = super.callPackage ./plugins/nnedi3 { };
nnedi3cl = super.callPackage ./plugins/nnedi3cl { };
placebo = super.callPackage ./plugins/placebo { };
retinex = super.callPackage ./plugins/retinex { };
sangnom = super.callPackage ./plugins/sangnom { };
tcanny = super.callPackage ./plugins/tcanny { };

View file

@ -0,0 +1,42 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, meson, ninja, pkg-config, libplacebo, vapoursynth, vulkan-headers, vulkan-loader }:
stdenv.mkDerivation rec {
pname = "vs-placebo";
version = "1.3.1";
src = fetchFromGitHub {
owner = "Lypheo";
repo = pname;
rev = version;
sha256 = "079i4ixm6273gy9x80ij7s645v5bm53vczkky5lg4vls5sk00hk2";
fetchSubmodules = true;
};
patches = [
# fix build with newer libplacebo
(fetchpatch {
url = "https://github.com/Lypheo/vs-placebo/commit/d717bb49ce03ea9d67152a7c2e4df026de040c35.diff";
sha256 = "0phnhpv7alxyw4ki3kj3a19j8qv16hww6gz06lyiyabj20xqibri";
})
(fetchpatch {
url = "https://github.com/Lypheo/vs-placebo/commit/6a99aa1c427f9119d695d3e9d1a08782f51740d1.diff";
sha256 = "1x7by89vc0368p4baqlyqi5kw38plr024g4kxbr6afg4f8q4rl58";
})
];
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ libplacebo vapoursynth vulkan-headers vulkan-loader ];
postPatch = ''
substituteInPlace meson.build \
--replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
'';
meta = with lib; {
description = "A libplacebo-based debanding, scaling and color mapping plugin for VapourSynth";
homepage = "https://github.com/Lypheo/vs-placebo";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}