From 2c20d5e7b4817a99f46ab9c8a418cffad5c5949d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 18:08:39 +0100 Subject: [PATCH] vapoursynthPlugins.ttempsmooth: init at r3.1 --- default.nix | 1 + plugins/ttempsmooth/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/ttempsmooth/default.nix diff --git a/default.nix b/default.nix index f6d742d..b3b50cc 100644 --- a/default.nix +++ b/default.nix @@ -41,6 +41,7 @@ in sangnom = super.callPackage ./plugins/sangnom { }; tcanny = super.callPackage ./plugins/tcanny { }; tnlmeans = super.callPackage ./plugins/tnlmeans { }; + ttempsmooth = super.callPackage ./plugins/ttempsmooth { }; wwxd = super.callPackage ./plugins/wwxd { }; znedi3 = super.callPackage ./plugins/znedi3 { }; }; diff --git a/plugins/ttempsmooth/default.nix b/plugins/ttempsmooth/default.nix new file mode 100644 index 0000000..c149de7 --- /dev/null +++ b/plugins/ttempsmooth/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "VapourSynth-TTempSmooth"; + version = "r3.1"; + + src = fetchFromGitHub { + owner = "HomeOfVapourSynthEvolution"; + repo = pname; + rev = version; + sha256 = "0h7wxqr3kpq92pr2kbzjljlkg57l1a40w662p322l4r7587x4zdz"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ vapoursynth ]; + + postPatch = '' + substituteInPlace meson.build \ + --replace "vapoursynth_dep.get_pkgconfig_variable('libdir')" "get_option('libdir')" + ''; + + meta = with lib; { + description = "A TTempSmooth filter plugin for VapourSynth"; + homepage = "https://github.com/HomeOfVapourSynthEvolution/VapourSynth-TTempSmooth"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}