vapoursynthPlugins.cas: init at r2

This commit is contained in:
Simon Bruder 2021-01-23 13:42:01 +01:00 committed by Tadeo Kondrak
parent ffb27277d6
commit 7b915f04d4
2 changed files with 30 additions and 0 deletions

View file

@ -8,6 +8,7 @@ self: super: {
bifrost = super.callPackage ./plugins/bifrost { }; bifrost = super.callPackage ./plugins/bifrost { };
bilateral = super.callPackage ./plugins/bilateral { }; bilateral = super.callPackage ./plugins/bilateral { };
bm3d = super.callPackage ./plugins/bm3d { }; bm3d = super.callPackage ./plugins/bm3d { };
cas = super.callPackage ./plugins/cas { };
cnr2 = super.callPackage ./plugins/cnr2 { }; cnr2 = super.callPackage ./plugins/cnr2 { };
continuityfixer = super.callPackage ./plugins/continuityfixer { }; continuityfixer = super.callPackage ./plugins/continuityfixer { };
ctmf = super.callPackage ./plugins/ctmf { }; ctmf = super.callPackage ./plugins/ctmf { };

29
plugins/cas/default.nix Normal file
View file

@ -0,0 +1,29 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }:
stdenv.mkDerivation rec {
pname = "VapourSynth-CAS";
version = "r2";
src = fetchFromGitHub {
owner = "HomeOfVapourSynthEvolution";
repo = pname;
rev = version;
sha256 = "0zcqz6vgfqy4lshc0cvf8hijs2y7c4nvm5nzmb8fl8si38d96rf5";
};
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 = "CAS filter plugin for VapourSynth";
homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-CAS";
license = licenses.mit;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.all;
};
}