libqglviewer: fix darwin build

/cc ZHF #36454
This commit is contained in:
Daiderd Jordan
2018-03-21 21:28:53 +01:00
parent 9a054d7cd6
commit c2ca5c057d
2 changed files with 6 additions and 3 deletions
@@ -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 =
''