From 7b915f04d4b54b852bcd6315cf2ddd04f04362f6 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 13:42:01 +0100 Subject: [PATCH] vapoursynthPlugins.cas: init at r2 --- default.nix | 1 + plugins/cas/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/cas/default.nix diff --git a/default.nix b/default.nix index 52bc386..ba92310 100644 --- a/default.nix +++ b/default.nix @@ -8,6 +8,7 @@ self: super: { bifrost = super.callPackage ./plugins/bifrost { }; bilateral = super.callPackage ./plugins/bilateral { }; bm3d = super.callPackage ./plugins/bm3d { }; + cas = super.callPackage ./plugins/cas { }; cnr2 = super.callPackage ./plugins/cnr2 { }; continuityfixer = super.callPackage ./plugins/continuityfixer { }; ctmf = super.callPackage ./plugins/ctmf { }; diff --git a/plugins/cas/default.nix b/plugins/cas/default.nix new file mode 100644 index 0000000..9d6221f --- /dev/null +++ b/plugins/cas/default.nix @@ -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; + }; +}