From 9efdaa04ef72265188f0ef4d65b70fd187407f7d Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Sun, 25 Sep 2022 11:20:12 +1300 Subject: [PATCH] decross: init at 1 --- default.nix | 1 + plugins/decross/default.nix | 40 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 plugins/decross/default.nix diff --git a/default.nix b/default.nix index 6eacaa5..f480b06 100644 --- a/default.nix +++ b/default.nix @@ -26,6 +26,7 @@ in d2vsource = prev.callPackage ./plugins/d2vsource { }; dctfilter = prev.callPackage ./plugins/dctfilter { }; deblock = prev.callPackage ./plugins/deblock { }; + decross = prev.callPackage ./plugins/decross { }; descale = prev.callPackage ./plugins/descale { }; dfttest = prev.callPackage ./plugins/dfttest { }; eedi2 = prev.callPackage ./plugins/eedi2 { }; diff --git a/plugins/decross/default.nix b/plugins/decross/default.nix new file mode 100644 index 0000000..62c455e --- /dev/null +++ b/plugins/decross/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, cmake +, pkg-config +, vapoursynth +}: + +stdenv.mkDerivation rec { + pname = "vapoursynth-decross"; + version = "1"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-BrtxBS1/q1rldVh8P9eHCeBoo/EueZ3TOrhaotV8l6g="; + }; + + nativeBuildInputs = [ + meson + ninja + cmake + pkg-config + ]; + + buildInputs = [ vapoursynth ]; + + mesonFlags = [ "--libdir=${placeholder "out"}/lib/vapoursynth" ]; + + meta = with lib; { + description = "A rainbow reduction filter plugin for VapourSynth"; + homepage = "https://github.com/dubhater/vapoursynth-decross"; + license = licenses.gpl2; + maintainers = with maintainers; [ aidalgol ]; + platforms = platforms.all; + }; +}