summary refs log tree commit diff
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-27 15:57:50 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-27 15:59:50 +0000
commit78af59354cba5fd84efc571086fcaab746b734c1 (patch)
treec7c61296b3e3f5fcf7d93426089b800ac5a7ec7c
parent4a8caddb6e2e34d4a5fc9aebd85c5dd9ffe53be8 (diff)
downloadnixlib-78af59354cba5fd84efc571086fcaab746b734c1.tar
nixlib-78af59354cba5fd84efc571086fcaab746b734c1.tar.gz
nixlib-78af59354cba5fd84efc571086fcaab746b734c1.tar.bz2
nixlib-78af59354cba5fd84efc571086fcaab746b734c1.tar.lz
nixlib-78af59354cba5fd84efc571086fcaab746b734c1.tar.xz
nixlib-78af59354cba5fd84efc571086fcaab746b734c1.tar.zst
nixlib-78af59354cba5fd84efc571086fcaab746b734c1.zip
glew: fix darwin install name
-rw-r--r--pkgs/development/libraries/glew/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/glew/default.nix b/pkgs/development/libraries/glew/default.nix
index 57bb4cb631d4..38b303bde856 100644
--- a/pkgs/development/libraries/glew/default.nix
+++ b/pkgs/development/libraries/glew/default.nix
@@ -19,8 +19,9 @@ stdenv.mkDerivation rec {
 
   patchPhase = ''
     sed -i 's|lib64|lib|' config/Makefile.linux
+    substituteInPlace config/Makefile.darwin --replace /usr/local "$out"
     ${optionalString (hostPlatform != buildPlatform) ''
-    sed -i -e 's/\(INSTALL.*\)-s/\1/' Makefile
+      sed -i -e 's/\(INSTALL.*\)-s/\1/' Makefile
     ''}
   '';
 
@@ -43,6 +44,8 @@ stdenv.mkDerivation rec {
     "SYSTEM=${if hostPlatform.isMinGW then "mingw" else hostPlatform.parsed.kernel.name}"
   ];
 
+  enableParallelBuilding = true;
+
   meta = with stdenv.lib; {
     description = "An OpenGL extension loading library for C(++)";
     homepage = http://glew.sourceforge.net/;