libqglviewer: fix darwin build

/cc ZHF #36454
This commit is contained in:
Daiderd Jordan 2018-03-21 20:46:21 +01:00
parent 9a054d7cd6
commit c2ca5c057d
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, qt4, qmake4Hook }:
{ stdenv, fetchurl, qt4, qmake4Hook, AGL }:
stdenv.mkDerivation rec {
name = "libqglviewer-2.6.3";
@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "00jdkyk4wg1356c3ar6nk3hyp494ya3yvshq9m57kfmqpn3inqdy";
};
buildInputs = [ qt4 qmake4Hook ];
buildInputs = [ qt4 qmake4Hook ]
++ stdenv.lib.optional stdenv.isDarwin AGL;
postPatch =
''

View File

@ -9928,7 +9928,9 @@ with pkgs;
libplist = callPackage ../development/libraries/libplist { };
libqglviewer = callPackage ../development/libraries/libqglviewer { };
libqglviewer = callPackage ../development/libraries/libqglviewer {
inherit (darwin.apple_sdk.frameworks) AGL;
};
libre = callPackage ../development/libraries/libre {};
librem = callPackage ../development/libraries/librem {};