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-01 02:17:56 +01:00
|
|
|
version = "4.6.3";
|
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-01 02:17:56 +01:00
|
|
|
sha256 = "1vi2bf2spak70qqc1c673a7pwmzq01gmli43xwhrwdw7l2ig4wj9";
|
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
|
|
|
};
|
|
|
|
}
|