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; + }; +}