ftgl: fix on darwin

This commit is contained in:
Dmitry Kalinkin 2019-02-01 14:16:52 -05:00
parent 453baaeabd
commit e253fd1a95
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, freetype, libGLU_combined}:
{ stdenv, fetchurl, freetype, libGLU_combined, OpenGL }:
let
name = "ftgl-2.1.3-rc5";
@ -11,7 +11,12 @@ stdenv.mkDerivation {
sha256 = "0nsn4s6vnv5xcgxcw6q031amvh2zfj2smy1r5mbnjj2548hxcn2l";
};
buildInputs = [ freetype libGLU_combined ];
buildInputs = [ freetype ]
++ (if stdenv.isDarwin then
[ OpenGL ]
else
[ libGLU_combined ])
;
enableParallelBuilding = true;

View File

@ -2728,7 +2728,9 @@ in
frostwire = callPackage ../applications/networking/p2p/frostwire { };
frostwire-bin = callPackage ../applications/networking/p2p/frostwire/frostwire-bin.nix { };
ftgl = callPackage ../development/libraries/ftgl { };
ftgl = callPackage ../development/libraries/ftgl {
inherit (darwin.apple_sdk.frameworks) OpenGL;
};
ftop = callPackage ../os-specific/linux/ftop { };