diff --git a/default.nix b/default.nix index df2728b..1285e3b 100644 --- a/default.nix +++ b/default.nix @@ -39,6 +39,7 @@ in placebo = super.callPackage ./plugins/placebo { }; retinex = super.callPackage ./plugins/retinex { }; sangnom = super.callPackage ./plugins/sangnom { }; + scxvid = super.callPackage ./plugins/scxvid { }; tcanny = super.callPackage ./plugins/tcanny { }; tnlmeans = super.callPackage ./plugins/tnlmeans { }; ttempsmooth = super.callPackage ./plugins/ttempsmooth { }; diff --git a/plugins/scxvid/default.nix b/plugins/scxvid/default.nix new file mode 100644 index 0000000..2610847 --- /dev/null +++ b/plugins/scxvid/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, vapoursynth, xvidcore }: + +stdenv.mkDerivation rec { + pname = "vapoursynth-scxvid"; + version = "1"; + + src = fetchFromGitHub { + owner = "dubhater"; + repo = pname; + rev = "v${version}"; + sha256 = "13afl3bsg4fx3w5myrbsd62sf76s9qhsggfn2fjai9vfq61lnb0f"; + }; + + configureFlags = [ "--libdir=$(out)/lib/vapoursynth" ]; + + nativeBuildInputs = [ pkg-config autoreconfHook ]; + buildInputs = [ vapoursynth xvidcore ]; + + meta = with lib; { + description = "Scene change detection plugin for VapourSynth using xvid"; + homepage = "https://github.com/dubhater/vapoursynth-scxvid"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}