nixpkgs/pkgs/servers/http/apache-modules/mod_wsgi/default.nix
Peter Simons 3f1392cb5a 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
2010-10-29 14:46:40 +00:00

28 lines
747 B
Nix

{ stdenv, fetchurl, apacheHttpd, python }:
stdenv.mkDerivation {
name = "mod_wsgi-3.3";
src = fetchurl {
url = "http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz";
sha256 = "0hrjksym0dlqn1ka1yf3x6ar801zqxfykwcxazjwz104k5w10vnr";
};
buildInputs = [ apacheHttpd python ];
patchPhase = ''
sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
${if stdenv.isDarwin then "-e 's|/usr/bin/lipo|lipo|'" else ""} \
configure
'';
meta = {
homepage = "http://code.google.com/p/modwsgi/";
description = "Host Python applications in Apache through the WSGI interface";
license = "ASL2.0";
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}