nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, apacheHttpd, python, ncurses }:
2
3stdenv.mkDerivation rec {
4 pname = "mod_wsgi";
5 version = "4.7.1";
6
7 src = fetchurl {
8 url = "https://github.com/GrahamDumpleton/mod_wsgi/archive/${version}.tar.gz";
9 sha256 = "0dbxhrp3x689ccrhvm2lw2icmmj8i4p86z2lq3xn1zlsf43fax16";
10 };
11
12 buildInputs = [ apacheHttpd python ncurses ];
13
14 patchPhase = ''
15 sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
16 ${if stdenv.isDarwin then "-e 's|/usr/bin/lipo|lipo|'" else ""} \
17 configure
18 '';
19
20 meta = {
21 homepage = "https://github.com/GrahamDumpleton/mod_wsgi";
22 description = "Host Python applications in Apache through the WSGI interface";
23 license = stdenv.lib.licenses.asl20;
24 platforms = stdenv.lib.platforms.linux;
25 };
26}