From 3c959c4701cea36034e5e216d3094ed931341cb8 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Sun, 25 Sep 2022 16:45:13 +1300 Subject: [PATCH] motionmask: init at unstable-2021-07-20 --- default.nix | 1 + plugins/motionmask/default.nix | 38 ++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 plugins/motionmask/default.nix diff --git a/default.nix b/default.nix index 9ec959d..45a08f9 100644 --- a/default.nix +++ b/default.nix @@ -44,6 +44,7 @@ in lsmashsource = prev.callPackage ./plugins/lsmashsource { }; median = prev.callPackage ./plugins/median { }; miscfilters-obsolete = prev.callPackage ./plugins/miscfilters-obsolete { }; + motionmask = prev.callPackage ./plugins/motionmask { }; msmoosh = prev.callPackage ./plugins/msmoosh { }; mvtools = prev.vapoursynth-mvtools; nnedi3 = prev.callPackage ./plugins/nnedi3 { }; diff --git a/plugins/motionmask/default.nix b/plugins/motionmask/default.nix new file mode 100644 index 0000000..b05004c --- /dev/null +++ b/plugins/motionmask/default.nix @@ -0,0 +1,38 @@ +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, vapoursynth +}: + +stdenv.mkDerivation rec { + pname = "vapoursynth-motionmask"; + version = "unstable-2021-07-20"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = pname; + rev = "ed86b06688c2db1b05d7026f66a2574e64c9e69e"; + sha256 = "sha256-wYb3L8aETt4FfpWugiOHMmgBSLN0Xuo1vxkQLULQUoE="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ vapoursynth ]; + + mesonFlags = [ "--libdir=${placeholder "out"}/lib/vapoursynth" ]; + + meta = with lib; { + description = "MotionMask plugin for VapourSynth"; + homepage = "https://github.com/dubhater/vapoursynth-motionmask"; + license = licenses.mit; + maintainers = with maintainers; [ aidalgol ]; + platforms = platforms.all; + }; +}