2010-10-21 16:39:58 +01:00
|
|
|
{ stdenv, fetchurl, apacheHttpd, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-01-15 15:44:16 +00:00
|
|
|
name = "mod_wsgi-3.4";
|
2010-10-21 16:39:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-15 15:44:16 +00:00
|
|
|
url = "http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz";
|
|
|
|
sha256 = "1s5nnjssvcl6lzy7kxmrk47yz6sgfzk90i1y7jml0s0lks7ck1df";
|
2010-10-21 16:39:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ apacheHttpd python ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
2010-10-29 15:46:40 +01: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 16:39:58 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://code.google.com/p/modwsgi/";
|
|
|
|
description = "Host Python applications in Apache through the WSGI interface";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2010-10-25 14:13:09 +01:00
|
|
|
|
2011-07-14 22:54:58 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-10-25 14:13:09 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2010-10-21 16:39:58 +01:00
|
|
|
};
|
|
|
|
}
|