diff options
Diffstat (limited to 'pkgs/servers/http/apache-modules/mod_wsgi/default.nix')
-rw-r--r-- | pkgs/servers/http/apache-modules/mod_wsgi/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_wsgi/default.nix b/pkgs/servers/http/apache-modules/mod_wsgi/default.nix new file mode 100644 index 0000000000000..c866c79e10d89 --- /dev/null +++ b/pkgs/servers/http/apache-modules/mod_wsgi/default.nix @@ -0,0 +1,22 @@ +{ 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 "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" configure + ''; + + meta = { + homepage = "http://code.google.com/p/modwsgi/"; + description = "Host Python applications in Apache through the WSGI interface"; + license = "ASL2.0"; + }; +} |