2010-10-21 17:39:58 +02:00
|
|
|
{ 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 = ''
|
2010-10-29 16:46:40 +02:00
|
|
|
sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
|
|
|
|
${if stdenv.isDarwin then "-e 's|/usr/bin/lipo|lipo|'" else ""} \
|
|
|
|
configure
|
2010-10-21 17:39:58 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://code.google.com/p/modwsgi/";
|
|
|
|
description = "Host Python applications in Apache through the WSGI interface";
|
|
|
|
license = "ASL2.0";
|
2010-10-25 15:13:09 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-10-21 17:39:58 +02:00
|
|
|
};
|
|
|
|
}
|