Skip to content

Commit

Permalink
vapoursynth: fix darwin build
Browse files Browse the repository at this point in the history
(cherry picked from commit 62f8e25)
  • Loading branch information
LnL7 committed Sep 21, 2017
1 parent 0269045 commit c2affb9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkgs/development/libraries/vapoursynth/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, pkgconfig, autoreconfHook,
zimg, libass, yasm, python3,
zimg, libass, yasm, python3, libiconv, ApplicationServices,
ocrSupport ? false, tesseract,
imwriSupport? true, imagemagick7
}:
Expand All @@ -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 = [
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Expand Up @@ -17741,7 +17741,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 { };

Expand Down

0 comments on commit c2affb9

Please sign in to comment.