From f4a4b09df6b60e21690578cdea0700f8ae857ebb Mon Sep 17 00:00:00 2001 From: Tadeo Kondrak Date: Fri, 28 Jun 2019 23:24:58 -0600 Subject: [PATCH] vapoursynthPlugins.cnr2: init at 1 --- default.nix | 1 + plugins/cnr2/default.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 plugins/cnr2/default.nix diff --git a/default.nix b/default.nix index 979a7dd..8b7c221 100644 --- a/default.nix +++ b/default.nix @@ -7,6 +7,7 @@ self: super: { bifrost = super.callPackage ./plugins/bifrost { }; bilateral = super.callPackage ./plugins/bilateral { }; bm3d = super.callPackage ./plugins/bm3d { }; + cnr2 = super.callPackage ./plugins/cnr2 { }; continuityfixer = super.callPackage ./plugins/continuityfixer { }; descale = super.callPackage ./plugins/descale { }; fmtconv = super.callPackage ./plugins/fmtconv { }; diff --git a/plugins/cnr2/default.nix b/plugins/cnr2/default.nix new file mode 100644 index 0000000..64274e7 --- /dev/null +++ b/plugins/cnr2/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitHub, autoreconfHook, pkg-config, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "vapoursynth-cnr2"; + version = "1"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = pname; + rev = "v${version}"; + sha256 = "1l77vzmaxqkdmmq1sbpmgn05lvaz06q12wg1rbzyasq34kic47ch"; + }; + + configureFlags = [ "--libdir=$(out)/lib/vapoursynth" ]; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ vapoursynth ]; + + meta = with stdenv.lib; { + description = "Temporal chroma denoiser for VapourSynth"; + homepage = https://github.com/dubhater/vapoursynth-cnr2; + license = licenses.gpl2; + maintainers = with maintainers; [ tadeokondrak ]; + platforms = platforms.all; + }; +}