2016-11-09 10:07:49 +00:00
|
|
|
{ stdenv, fetchurl, apacheHttpd, python2 }:
|
2006-01-15 12:03:00 +00:00
|
|
|
|
2014-11-07 10:30:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "mod_python-3.5.0";
|
2006-01-15 12:03:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-07 10:30:44 +00:00
|
|
|
url = "http://dist.modpython.org/dist/${name}.tgz";
|
|
|
|
sha256 = "146apll3yfqk05s8fkf4acmxzqncl08bgn4rv0c1rd4qxmc91w0f";
|
2006-01-15 12:03:00 +00:00
|
|
|
};
|
|
|
|
|
2014-11-07 10:30:44 +00:00
|
|
|
patches = [ ./install.patch ];
|
2008-10-06 14:38:45 +01:00
|
|
|
|
2015-05-25 17:24:22 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace dist/version.sh \
|
|
|
|
--replace 'GIT=`git describe --always`' "" \
|
|
|
|
--replace '-$GIT' ""
|
|
|
|
'';
|
|
|
|
|
2019-11-05 01:10:31 +00:00
|
|
|
installFlags = [ "LIBEXECDIR=${placeholder "out"}/modules" ];
|
|
|
|
|
2008-10-06 14:38:45 +01:00
|
|
|
preInstall = ''
|
2014-11-07 10:30:44 +00:00
|
|
|
mkdir -p $out/modules $out/bin
|
2008-10-06 14:38:45 +01:00
|
|
|
'';
|
2006-01-15 12:03:00 +00:00
|
|
|
|
2008-10-06 14:38:45 +01:00
|
|
|
passthru = { inherit apacheHttpd; };
|
2014-11-07 10:30:44 +00:00
|
|
|
|
2016-11-09 10:07:49 +00:00
|
|
|
buildInputs = [ apacheHttpd python2 ];
|
2014-11-07 10:30:44 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://modpython.org/";
|
2014-11-07 10:30:44 +00:00
|
|
|
description = "An Apache module that embeds the Python interpreter within the server";
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-11-07 10:30:44 +00:00
|
|
|
};
|
2006-01-15 12:03:00 +00:00
|
|
|
}
|