From 29e467be9db233f8c0e308982c2a03379ed0c73a Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 16 May 2021 10:36:52 +0200 Subject: [PATCH] vapoursynthPlugins.fillborders: init at 2 --- default.nix | 1 + plugins/fillborders/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 plugins/fillborders/default.nix diff --git a/default.nix b/default.nix index 54961ab..43f4a3d 100644 --- a/default.nix +++ b/default.nix @@ -25,6 +25,7 @@ in f3kdb = super.callPackage ./plugins/f3kdb { }; ffms2 = super.ffms; fft3dfilter = super.callPackage ./plugins/fft3dfilter { }; + fillborders = super.callPackage ./plugins/fillborders { }; fluxsmooth = super.callPackage ./plugins/fluxsmooth { }; fmtconv = super.callPackage ./plugins/fmtconv { }; histogram = super.callPackage ./plugins/histogram { }; diff --git a/plugins/fillborders/default.nix b/plugins/fillborders/default.nix new file mode 100644 index 0000000..b47a709 --- /dev/null +++ b/plugins/fillborders/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "vapoursynth-fillborders"; + version = "2"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = pname; + rev = "v${version}"; + sha256 = "0c3y24796km382i6bn2ixqc6yfb87ipclvgp20b7h9rhg8sfhf9i"; + }; + + nativeBuildInputs = [ meson ninja pkg-config ]; + buildInputs = [ vapoursynth ]; + + postInstall = '' + # it installs the library in the wrong directory + mkdir $out/lib/vapoursynth + mv $out/lib/libfillborders.* $out/lib/vapoursynth/ + ''; + + meta = with lib; { + description = "VapourSynth plugin to fill the borders of a clip"; + homepage = "https://github.com/dubhater/vapoursynth-fillborders"; + license = licenses.wtfpl; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}