Skip to content

Commit

Permalink
libqglviewer: fix darwin build
Browse files Browse the repository at this point in the history
/cc ZHF #36454
  • Loading branch information
LnL7 committed Mar 21, 2018
1 parent 9a054d7 commit c2ca5c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions pkgs/development/libraries/libqglviewer/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, qt4, qmake4Hook }:
{ stdenv, fetchurl, qt4, qmake4Hook, AGL }:

stdenv.mkDerivation rec {
name = "libqglviewer-2.6.3";
Expand All @@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
sha256 = "00jdkyk4wg1356c3ar6nk3hyp494ya3yvshq9m57kfmqpn3inqdy";
};

buildInputs = [ qt4 qmake4Hook ];
buildInputs = [ qt4 qmake4Hook ]
++ stdenv.lib.optional stdenv.isDarwin AGL;

postPatch =
''
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {};
Expand Down

0 comments on commit c2ca5c0

Please sign in to comment.