vapoursynthPlugins.removegrain: init at unstable-2021-09-27

This commit is contained in:
Simon Bruder 2021-10-15 18:40:45 +02:00 committed by Simon Bruder
parent 1ca5c6cef3
commit 8ad7342d9c
2 changed files with 30 additions and 0 deletions

View file

@ -43,6 +43,7 @@ in
placebo = prev.callPackage ./plugins/placebo { };
readmpls = prev.callPackage ./plugins/readmpls { };
remap = prev.callPackage ./plugins/remap { };
removegrain = prev.callPackage ./plugins/removegrain { };
retinex = prev.callPackage ./plugins/retinex { };
sangnom = prev.callPackage ./plugins/sangnom { };
scxvid = prev.callPackage ./plugins/scxvid { };

View file

@ -0,0 +1,29 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }:
stdenv.mkDerivation rec {
pname = "vs-removegrain";
version = "unstable-2021-09-27";
src = fetchFromGitHub {
owner = "vapoursynth";
repo = pname;
rev = "ea3d1566b7d82e1efb2f30612d6951dc61ebba65";
sha256 = "sha256-yg6VSZzkxFLzW/bTNMx0EollzzJtMKxRuwwXBH326aI=";
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ vapoursynth ];
postPatch = ''
substituteInPlace meson.build \
--replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')"
'';
meta = with lib; {
description = "VapourSynth port of RemoveGrain and Repair plugins from Avisynth";
homepage = "https://github.com/vapoursynth/vs-removegrain";
license = with licenses; [ mit unfree wtfpl ]; # only some files have license header
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}