vapoursynth: fix darwin build

This commit is contained in:
Daiderd Jordan 2017-09-21 22:22:38 +02:00
parent 82a4b755b1
commit 62f8e255a4
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
zimg, libass, yasm, python3,
zimg, libass, yasm, python3, libiconv, ApplicationServices,
ocrSupport ? false, tesseract,
imwriSupport? true, imagemagick7
}:
@ -20,11 +20,12 @@ stdenv.mkDerivation rec {
sha256 = "0nabl6949s7awy7rnr4ck52v50xr0hwr280fyzsqixgp8w369jn0";
};
nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [
pkgconfig autoreconfHook
zimg libass tesseract yasm
(python3.withPackages (ps: with ps; [ sphinx cython ]))
] ++ optional ocrSupport tesseract
] ++ optionals stdenv.isDarwin [ libiconv ApplicationServices ]
++ optional ocrSupport tesseract
++ optional imwriSupport imagemagick7;
configureFlags = [

View File

@ -17807,7 +17807,9 @@ with pkgs;
vapor = callPackage ../games/vapor { love = love_0_8; };
vapoursynth = callPackage ../development/libraries/vapoursynth { };
vapoursynth = callPackage ../development/libraries/vapoursynth {
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
};
vapoursynth-mvtools = callPackage ../development/libraries/vapoursynth-mvtools { };