2019-08-27 13:26:17 +01:00
|
|
|
{ stdenv, fetchurl, apacheHttpd, python, ncurses }:
|
2010-10-21 16:39:58 +01:00
|
|
|
|
2014-09-13 19:32:07 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mod_wsgi";
|
2020-02-19 08:54:38 +00:00
|
|
|
version = "4.7.1";
|
2010-10-21 16:39:58 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-13 19:32:07 +01:00
|
|
|
url = "https://github.com/GrahamDumpleton/mod_wsgi/archive/${version}.tar.gz";
|
2020-02-19 08:54:38 +00:00
|
|
|
sha256 = "0dbxhrp3x689ccrhvm2lw2icmmj8i4p86z2lq3xn1zlsf43fax16";
|
2010-10-21 16:39:58 +01:00
|
|
|
};
|
|
|
|
|
2019-08-27 13:26:17 +01:00
|
|
|
buildInputs = [ apacheHttpd python ncurses ];
|
2010-10-21 16:39:58 +01:00
|
|
|
|
|
|
|
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 = {
|
2017-10-27 00:44:19 +01:00
|
|
|
homepage = https://github.com/GrahamDumpleton/mod_wsgi;
|
2010-10-21 16:39:58 +01:00
|
|
|
description = "Host Python applications in Apache through the WSGI interface";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2011-07-14 22:54:58 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-10-21 16:39:58 +01:00
|
|
|
};
|
|
|
|
}
|