pangolin: fix OS X build

This commit is contained in:
Joe Hermaszewski 2017-08-09 22:14:23 +01:00
parent 4b1bcf8724
commit 7cd44aeeef
2 changed files with 9 additions and 4 deletions

View File

@ -1,5 +1,7 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, doxygen, mesa_noglu, glew, xorg
, ffmpeg, python3 , libjpeg, libpng, libtiff, eigen }:
{ stdenv, lib, fetchFromGitHub, cmake, pkgconfig, doxygen, mesa_noglu, glew
, xorg , ffmpeg, python3 , libjpeg, libpng, libtiff, eigen
, Carbon ? null, Cocoa ? null
}:
stdenv.mkDerivation rec {
name = "pangolin-${version}";
@ -25,7 +27,8 @@ stdenv.mkDerivation rec {
libpng
libtiff
eigen
];
]
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];
enableParallelBuilding = true;

View File

@ -8180,7 +8180,9 @@ with pkgs;
pango = callPackage ../development/libraries/pango { };
pangolin = callPackage ../development/libraries/pangolin { };
pangolin = callPackage ../development/libraries/pangolin {
inherit (darwin.apple_sdk.frameworks) Carbon Cocoa;
};
pangomm = callPackage ../development/libraries/pangomm {
inherit (darwin.apple_sdk.frameworks) ApplicationServices;