From 369c2d347f25a5f1e176675b41a31c9667e22def Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 15 Oct 2021 18:46:49 +0200 Subject: [PATCH] vapoursynthPlugins.vivtc: init at unstable-2021-09-26 --- default.nix | 1 + plugins/vivtc/default.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/vivtc/default.nix diff --git a/default.nix b/default.nix index 8afaf5f..fe8cbd6 100644 --- a/default.nix +++ b/default.nix @@ -51,6 +51,7 @@ in tcanny = prev.callPackage ./plugins/tcanny { }; tnlmeans = prev.callPackage ./plugins/tnlmeans { }; ttempsmooth = prev.callPackage ./plugins/ttempsmooth { }; + vivtc = prev.callPackage ./plugins/vivtc { }; wwxd = prev.callPackage ./plugins/wwxd { }; znedi3 = prev.callPackage ./plugins/znedi3 { }; diff --git a/plugins/vivtc/default.nix b/plugins/vivtc/default.nix new file mode 100644 index 0000000..f258a3e --- /dev/null +++ b/plugins/vivtc/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "vivtc"; + version = "unstable-2021-09-26"; + + src = fetchFromGitHub { + owner = "vapoursynth"; + repo = pname; + rev = "ed56d96d13a2989fc147a1e9faaced959b6b2cd8"; + sha256 = "sha256-4tevOjXy41yWYIvsvNODVzVlNx5e/Yf1zFK20Q/8RGs="; + }; + + 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 = "Field matcher and decimation filter for VapourSynth similar to TIVTC"; + homepage = "https://github.com/vapoursynth/vivtc"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}