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

53 lines
1.4 KiB
Nix
Raw Normal View History

2019-06-25 22:40:27 +00:00
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook, makeWrapper
2017-11-05 18:08:36 +00:00
, zimg, libass, python3, libiconv
, ApplicationServices, nasm
2018-02-27 10:32:55 +00:00
, ocrSupport ? false, tesseract ? null
, imwriSupport? true, imagemagick7 ? null
2016-08-27 03:36:45 +00:00
}:
2017-09-12 02:10:32 +00:00
assert ocrSupport -> tesseract != null;
assert imwriSupport -> imagemagick7 != null;
with stdenv.lib;
2016-08-27 03:36:45 +00:00
stdenv.mkDerivation rec {
2019-06-25 22:40:27 +00:00
pname = "vapoursynth";
2019-08-13 18:22:55 +00:00
version = "R47.2";
2016-08-27 03:36:45 +00:00
src = fetchFromGitHub {
2017-02-04 18:56:22 +00:00
owner = "vapoursynth";
repo = "vapoursynth";
rev = version;
2019-08-13 18:22:55 +00:00
sha256 = "004h0vvih7dlhkcz6l2786pf7s04qhiv0bii4gjx23cxyklglh9i";
2016-08-27 03:36:45 +00:00
};
2019-06-25 22:40:27 +00:00
nativeBuildInputs = [ pkgconfig autoreconfHook nasm makeWrapper ];
2016-08-27 03:36:45 +00:00
buildInputs = [
2017-11-05 18:08:36 +00:00
zimg libass
2016-08-27 03:36:45 +00:00
(python3.withPackages (ps: with ps; [ sphinx cython ]))
2017-09-21 20:22:38 +00:00
] ++ optionals stdenv.isDarwin [ libiconv ApplicationServices ]
++ optional ocrSupport tesseract
++ optional imwriSupport imagemagick7;
2016-08-27 03:36:45 +00:00
configureFlags = [
2017-09-12 02:10:32 +00:00
(optionalString (!ocrSupport) "--disable-ocr")
(optionalString (!imwriSupport) "--disable-imwri")
2016-08-27 03:36:45 +00:00
];
2018-07-03 15:04:20 +00:00
enableParallelBuilding = true;
2019-06-25 22:40:27 +00:00
postInstall = ''
wrapProgram $out/bin/vspipe \
--prefix PYTHONPATH : $out/${python3.sitePackages}
'';
2017-09-12 02:10:32 +00:00
meta = with stdenv.lib; {
2016-08-27 03:36:45 +00:00
description = "A video processing framework with the future in mind";
2017-09-12 02:24:22 +00:00
homepage = http://www.vapoursynth.com/;
license = licenses.lgpl21;
2018-02-27 10:32:55 +00:00
platforms = platforms.x86_64;
2019-06-25 22:40:27 +00:00
maintainers = with maintainers; [ rnhmjoj tadeokondrak ];
2016-08-27 03:36:45 +00:00
};
}