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}";
|
|
|
|
version = "3.5";
|
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";
|
|
|
|
sha256 = "14xz422jlakdhxzsl8xs9if86yf1fnkwdg0havjyqs7my0w4qrzh";
|
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 = {
|
2014-09-13 19:32:07 +01:00
|
|
|
homepage = http://code.google.com/p/modwsgi/;
|
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
|
|
|
};
|
|
|
|
}
|