nixpkgs/pkgs/development/libraries/vapoursynth/default.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

2016-08-27 04:36:45 +01:00
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
glibc, zimg, imagemagick, libass, yasm, python3,
ocrSupport ? false, tesseract
2016-08-27 04:36:45 +01:00
}:
assert ocrSupport -> tesseract != null;
with stdenv.lib;
2016-08-27 04:36:45 +01:00
stdenv.mkDerivation rec {
name = "vapoursynth-${version}";
2017-02-04 18:56:22 +00:00
version = "R36";
2016-08-27 04:36:45 +01:00
src = fetchFromGitHub {
2017-02-04 18:56:22 +00:00
owner = "vapoursynth";
repo = "vapoursynth";
rev = version;
sha256 = "10yiccj7yd4bd3a6k15xahb5y3ymcagyaqavh0wal2rwzfck9k8c";
2016-08-27 04:36:45 +01:00
};
buildInputs = [
pkgconfig autoreconfHook
zimg imagemagick libass glibc tesseract yasm
(python3.withPackages (ps: with ps; [ sphinx cython ]))
] ++ optional ocrSupport tesseract;
2016-08-27 04:36:45 +01:00
configureFlags = [
"--enable-imwri"
"--disable-static"
(optionalString (!ocrSupport) "--disable-ocr")
2016-08-27 04:36:45 +01:00
];
meta = {
2016-08-27 04:36:45 +01:00
description = "A video processing framework with the future in mind";
2017-02-04 18:56:22 +00:00
homepage = http://www.vapoursynth.com/;
license = licenses.lgpl21;
platforms = platforms.unix;
2016-08-27 04:36:45 +01:00
maintainers = with maintainers; [ rnhmjoj ];
};
}