From 7148a48328adea31d65e3d8adac6ff8f18815908 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 23 Jan 2021 10:09:52 +0100 Subject: [PATCH] vapoursynthPlugins.histogram: init at 2 --- default.nix | 1 + plugins/histogram/default.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 plugins/histogram/default.nix diff --git a/default.nix b/default.nix index 07e04e4..6f3f67d 100644 --- a/default.nix +++ b/default.nix @@ -15,6 +15,7 @@ self: super: { f3kdb = super.callPackage ./plugins/f3kdb { }; ffms2 = super.ffms; fmtconv = super.callPackage ./plugins/fmtconv { }; + histogram = super.callPackage ./plugins/histogram { }; knlmeanscl = super.callPackage ./plugins/knlmeanscl { }; lsmashsource = super.callPackage ./plugins/lsmashsource { }; mvtools = super.vapoursynth-mvtools; diff --git a/plugins/histogram/default.nix b/plugins/histogram/default.nix new file mode 100644 index 0000000..1f679f4 --- /dev/null +++ b/plugins/histogram/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "vapoursynth-histogram"; + version = "2"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = pname; + rev = "v${version}"; + sha256 = "1wdjf44cl6sw7cqiv92q20gnn5bqlbln6pqxf41db7arjv93dh9l"; + }; + + configureFlags = [ "--libdir=$(out)/lib/vapoursynth" ]; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ vapoursynth ]; + + meta = with lib; { + description = "Histogram plugin for VapourSynth"; + homepage = "https://github.com/dubhater/vapoursynth-histogram"; + license = licenses.gpl2Plus; # https://github.com/dubhater/vapoursynth-histogram/issues/2 + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}