From 6cc24a5a6c3489df2805cb10ee6933c81a33a9e1 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 16 May 2021 10:15:04 +0200 Subject: [PATCH] vapoursynthPlugins.scxvid: init at 1 --- default.nix | 1 + plugins/scxvid/default.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 plugins/scxvid/default.nix 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; + }; +}