fox: fix darwin build

This commit is contained in:
Matthew Bauer 2016-08-11 22:17:15 -05:00
parent 7afc589d7d
commit 410fa4b427
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{ stdenv, fetchurl, xlibsWrapper, libpng, libjpeg, libtiff, zlib, bzip2, libXcursor, libXrandr, libXft }:
{ stdenv, fetchurl, xlibsWrapper, libpng, libjpeg, libtiff, zlib, bzip2, libXcursor, libXrandr, libXft
, CoreServices ? null }:
let
version = "1.7.9";
@ -12,7 +13,8 @@ stdenv.mkDerivation rec {
sha256 = "1jb9368xsin3ppdf6979n5s7in3s9klbxqbwcp0z8misjixl7nzg";
};
buildInputs = [ libpng xlibsWrapper libjpeg libtiff zlib bzip2 libXcursor libXrandr libXft ];
buildInputs = [ libpng xlibsWrapper libjpeg libtiff zlib bzip2 libXcursor libXrandr libXft ]
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];
doCheck = true;

View File

@ -1615,6 +1615,7 @@ in
fox = callPackage ../development/libraries/fox/default.nix {
libpng = libpng12;
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
fox_1_6 = callPackage ../development/libraries/fox/fox-1.6.nix { };