From 9da59ca532b8a203c1fcafc2ef40e4a895c8b7c2 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Tue, 27 Sep 2022 22:04:24 +1300 Subject: [PATCH] temporalmedian: init at 1 --- default.nix | 1 + plugins/temporalmedian/default.nix | 38 ++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 plugins/temporalmedian/default.nix 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; + }; +}