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; + }; +}