From ffb27277d6ce83e892613435d91305dd455e26d0 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 12:51:37 +0100 Subject: [PATCH] vapoursynthPlugins.ctmf: init at r5 --- default.nix | 1 + plugins/ctmf/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/ctmf/default.nix diff --git a/default.nix b/default.nix index 0bf88ff..52bc386 100644 --- a/default.nix +++ b/default.nix @@ -10,6 +10,7 @@ self: super: { bm3d = super.callPackage ./plugins/bm3d { }; cnr2 = super.callPackage ./plugins/cnr2 { }; continuityfixer = super.callPackage ./plugins/continuityfixer { }; + ctmf = super.callPackage ./plugins/ctmf { }; dctfilter = super.callPackage ./plugins/dctfilter { }; deblock = super.callPackage ./plugins/deblock { }; descale = super.callPackage ./plugins/descale { }; diff --git a/plugins/ctmf/default.nix b/plugins/ctmf/default.nix new file mode 100644 index 0000000..032fc84 --- /dev/null +++ b/plugins/ctmf/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "VapourSynth-CTMF"; + version = "r5"; + + src = fetchFromGitHub { + owner = "HomeOfVapourSynthEvolution"; + repo = pname; + rev = version; + sha256 = "138gbag1m3cg2bizc5ncxgriz3aw7dkqh1fpky3grlkspn5jc9x5"; + }; + + 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 = "A CTMF filter plugin for VapourSynth"; + homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-CTMF"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}