Files
nixpkgs/pkgs/servers/http/apache-modules/mod_python/default.nix
T

34 lines
820 B
Nix
Raw Normal View History

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