2016-11-08 21:42:11 +00:00
|
|
|
{ stdenv, fetchurl, apacheHttpd, python2 }:
|
2010-10-21 16:39:58 +01:00
|
|
|
|
2014-09-13 19:32:07 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mod_wsgi-${version}";
|
2018-04-20 20:38:26 +01:00
|
|
|
version = "4.6.4";
|
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";
|
2018-04-20 20:38:26 +01:00
|
|
|
sha256 = "1hyaxr9km7cj4k6b0d6xx3bplpa8483fhyk9x802sl22m3f2vc1k";
|
2010-10-21 16:39:58 +01:00
|
|
|
};
|
|
|
|
|
2016-11-08 21:42:11 +00:00
|
|
|
buildInputs = [ apacheHttpd python2 ];
|
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
|
|
|
};
|
|
|
|
}
|