mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 02:24:27 +00:00
42 lines
1 KiB
Nix
42 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
|
|
glibc, zimg, imagemagick, libass, yasm, python3,
|
|
ocrSupport ? false, tesseract
|
|
}:
|
|
|
|
assert ocrSupport -> tesseract != null;
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "vapoursynth-${version}";
|
|
version = "R36";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vapoursynth";
|
|
repo = "vapoursynth";
|
|
rev = version;
|
|
sha256 = "10yiccj7yd4bd3a6k15xahb5y3ymcagyaqavh0wal2rwzfck9k8c";
|
|
};
|
|
|
|
buildInputs = [
|
|
pkgconfig autoreconfHook
|
|
zimg imagemagick libass glibc tesseract yasm
|
|
(python3.withPackages (ps: with ps; [ sphinx cython ]))
|
|
] ++ optional ocrSupport tesseract;
|
|
|
|
configureFlags = [
|
|
"--enable-imwri"
|
|
"--disable-static"
|
|
(optionalString (!ocrSupport) "--disable-ocr")
|
|
];
|
|
|
|
meta = {
|
|
description = "A video processing framework with the future in mind";
|
|
homepage = http://www.vapoursynth.com/;
|
|
license = licenses.lgpl21;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
};
|
|
|
|
}
|