diff --git a/default.nix b/default.nix index 74b7ded..8a45986 100644 --- a/default.nix +++ b/default.nix @@ -16,6 +16,7 @@ in cnr2 = super.callPackage ./plugins/cnr2 { }; continuityfixer = super.callPackage ./plugins/continuityfixer { }; ctmf = super.callPackage ./plugins/ctmf { }; + d2vsource = super.callPackage ./plugins/d2vsource { }; dctfilter = super.callPackage ./plugins/dctfilter { }; deblock = super.callPackage ./plugins/deblock { }; descale = super.callPackage ./plugins/descale { }; diff --git a/plugins/d2vsource/default.nix b/plugins/d2vsource/default.nix new file mode 100644 index 0000000..f8d6f48 --- /dev/null +++ b/plugins/d2vsource/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, ffmpeg, vapoursynth }: + +stdenv.mkDerivation rec { + pname = "d2vsource"; + version = "1.2"; + + src = fetchFromGitHub { + owner = "dwbuiten"; + repo = pname; + rev = "v${version}"; + sha256 = "1ax20qs1hba70r07pdw3gs4gylwb2ca4iz9ycmd9i5rvxaxy4hmp"; + }; + + configureFlags = [ "--libdir=$(out)/lib/vapoursynth" ]; + + nativeBuildInputs = [ autoreconfHook pkg-config ]; + buildInputs = [ ffmpeg vapoursynth ]; + + meta = with lib; { + description = "D2V parser and decoder for VapourSynth"; + homepage = "https://github.com/dubhater/vapoursynth-cnr2"; + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}