about summary refs log tree commit diff
path: root/pkgs/servers/http/apache-modules/mod_wsgi/default.nix
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2010-10-29 14:46:40 +0000
committerPeter Simons <simons@cryp.to>2010-10-29 14:46:40 +0000
commit3f1392cb5aa837962c6358bc4e6e73e313166a88 (patch)
treefef351976f47da96676d8268c847a2d982479a1f /pkgs/servers/http/apache-modules/mod_wsgi/default.nix
parent15ef8b57212f4bb8f51e6ecbfaa9cba380cbc657 (diff)
downloadnixlib-3f1392cb5aa837962c6358bc4e6e73e313166a88.tar
nixlib-3f1392cb5aa837962c6358bc4e6e73e313166a88.tar.gz
nixlib-3f1392cb5aa837962c6358bc4e6e73e313166a88.tar.bz2
nixlib-3f1392cb5aa837962c6358bc4e6e73e313166a88.tar.lz
nixlib-3f1392cb5aa837962c6358bc4e6e73e313166a88.tar.xz
nixlib-3f1392cb5aa837962c6358bc4e6e73e313166a88.tar.zst
nixlib-3f1392cb5aa837962c6358bc4e6e73e313166a88.zip
mod_wsgi: fixed build on Darwin
The configure script had an hard-coded impure path to the lipo binary. If that
binary was found -- and it was --, then the script decided to pass an invalid
"-arch i386" flag to libtool, which subsequently failed. There is probably
another way to pass that -arch flag, but I didn't look hard because it's
redundant anyway.

svn path=/nixpkgs/trunk/; revision=24530
Diffstat (limited to 'pkgs/servers/http/apache-modules/mod_wsgi/default.nix')
-rw-r--r--pkgs/servers/http/apache-modules/mod_wsgi/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_wsgi/default.nix b/pkgs/servers/http/apache-modules/mod_wsgi/default.nix
index d9b902980d7e..b5073428754c 100644
--- a/pkgs/servers/http/apache-modules/mod_wsgi/default.nix
+++ b/pkgs/servers/http/apache-modules/mod_wsgi/default.nix
@@ -11,7 +11,9 @@ stdenv.mkDerivation {
   buildInputs = [ apacheHttpd python ];
 
   patchPhase = ''
-    sed -r -i "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" configure
+    sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
+      ${if stdenv.isDarwin then "-e 's|/usr/bin/lipo|lipo|'" else ""} \
+      configure
   '';
 
   meta = {