2019-08-27 12:26:17 +00:00
|
|
|
{ stdenv, fetchurl, apacheHttpd, python, ncurses }:
|
2010-10-21 15:39:58 +00:00
|
|
|
|
2014-09-13 18:32:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mod_wsgi";
|
2020-02-19 08:54:38 +00:00
|
|
|
version = "4.7.1";
|
2010-10-21 15:39:58 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-13 18:32:07 +00: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 15:39:58 +00:00
|
|
|
};
|
|
|
|
|
2019-08-27 12:26:17 +00:00
|
|
|
buildInputs = [ apacheHttpd python ncurses ];
|
2010-10-21 15:39:58 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
2010-10-29 14:46:40 +00: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 15:39:58 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2017-10-26 23:44:19 +00:00
|
|
|
homepage = https://github.com/GrahamDumpleton/mod_wsgi;
|
2010-10-21 15:39:58 +00:00
|
|
|
description = "Host Python applications in Apache through the WSGI interface";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
2011-07-14 21:54:58 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2010-10-21 15:39:58 +00:00
|
|
|
};
|
|
|
|
}
|