nixpkgs/pkgs/servers/http/apache-modules/mod_wsgi/default.nix
2014-01-15 17:29:14 +01:00

28 lines
748 B
Nix

{ stdenv, fetchurl, apacheHttpd, python }:
stdenv.mkDerivation {
name = "mod_wsgi-3.4";
src = fetchurl {
url = "http://modwsgi.googlecode.com/files/mod_wsgi-3.4.tar.gz";
sha256 = "1s5nnjssvcl6lzy7kxmrk47yz6sgfzk90i1y7jml0s0lks7ck1df";
};
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.linux;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}