From 7b630f442ccc854bbd561000d6d32ef4f0b5258c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Oct 2010 15:39:58 +0000 Subject: [PATCH] Added an expression for mod_wsgi-3.3, to be used with Apache 2. svn path=/nixpkgs/trunk/; revision=24408 --- .../http/apache-modules/mod_wsgi/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/servers/http/apache-modules/mod_wsgi/default.nix 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 000000000000..c866c79e10d8 --- /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"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 20f787cfb28d..fb72f78e358e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4191,6 +4191,8 @@ let mod_fastcgi = callPackage ../servers/http/apache-modules/mod_fastcgi { }; + mod_wsgi = callPackage ../servers/http/apache-modules/mod_wsgi { }; + mpd = callPackage ../servers/mpd { }; myserver = callPackage ../servers/http/myserver { };