From d6fd1d9ee8a685665b10ccd21165eec296355528 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 12:40:10 +0100 Subject: [PATCH] vapoursynthPlugins.fft3dfilter: init at unstable-2020-08-05 --- default.nix | 1 + plugins/fft3dfilter/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/fft3dfilter/default.nix diff --git a/default.nix b/default.nix index 6facbce..a572c1d 100644 --- a/default.nix +++ b/default.nix @@ -18,6 +18,7 @@ self: super: { eedi3m = super.callPackage ./plugins/eedi3m { }; f3kdb = super.callPackage ./plugins/f3kdb { }; ffms2 = super.ffms; + fft3dfilter = super.callPackage ./plugins/fft3dfilter { }; fmtconv = super.callPackage ./plugins/fmtconv { }; histogram = super.callPackage ./plugins/histogram { }; knlmeanscl = super.callPackage ./plugins/knlmeanscl { }; diff --git a/plugins/fft3dfilter/default.nix b/plugins/fft3dfilter/default.nix new file mode 100644 index 0000000..36184fd --- /dev/null +++ b/plugins/fft3dfilter/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, fftwFloat, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "VapourSynth-FFT3DFilter"; + version = "unstable-2020-08-05"; # last version before requiring v4 api + + src = fetchFromGitHub { + owner = "myrsloik"; + repo = pname; + rev = "64323f0fdee4dd4fe429ee6287906dbae8e7571c"; + sha256 = "0s2wf1i733srsqgz6fhs7kyra55pib9n5xkx9hpqjjv4sxlnfc9l"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ fftwFloat vapoursynth ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')" + ''; + + meta = with lib; { + description = "A VapourSynth port of FFT3DFilter"; + homepage = "https://github.com/myrsloik/VapourSynth-FFT3DFilter"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}