diff --git a/default.nix b/default.nix index 0567fb6..7991494 100644 --- a/default.nix +++ b/default.nix @@ -59,6 +59,7 @@ in scxvid = prev.callPackage ./plugins/scxvid { }; subtext = prev.callPackage ./plugins/subtext { }; tcanny = prev.callPackage ./plugins/tcanny { }; + temporalmedian = prev.callPackage ./plugins/temporalmedian { }; temporalsoften2 = prev.callPackage ./plugins/temporalsoften2 { }; tnlmeans = prev.callPackage ./plugins/tnlmeans { }; ttempsmooth = prev.callPackage ./plugins/ttempsmooth { }; diff --git a/plugins/temporalmedian/default.nix b/plugins/temporalmedian/default.nix new file mode 100644 index 0000000..bec32b9 --- /dev/null +++ b/plugins/temporalmedian/default.nix @@ -0,0 +1,38 @@ +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, vapoursynth +}: + +stdenv.mkDerivation rec { + pname = "vapoursynth-temporalmedian"; + version = "1"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-UMYBA0kAGiNdcacV25O0pFgbt8bYbhS19u6edZfugYE="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ vapoursynth ]; + + mesonFlags = [ "--libdir=${placeholder "out"}/lib/vapoursynth" ]; + + meta = with lib; { + description = "Temporal denoising plugin for VapourSynth"; + homepage = "https://github.com/dubhater/vapoursynth-temporalmedian"; + license = licenses.isc; + maintainers = with maintainers; [ aidalgol ]; + platforms = platforms.all; + }; +}