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

35 lines
828 B
Nix
Raw Normal View History

2021-01-15 07:07:56 +00:00
{ lib, stdenv, fetchurl, apacheHttpd, python2 }:
stdenv.mkDerivation rec {
name = "mod_python-3.5.0";
src = fetchurl {
url = "http://dist.modpython.org/dist/${name}.tgz";
sha256 = "146apll3yfqk05s8fkf4acmxzqncl08bgn4rv0c1rd4qxmc91w0f";
};
patches = [ ./install.patch ];
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" ];
preInstall = ''
mkdir -p $out/modules $out/bin
'';
passthru = { inherit apacheHttpd; };
2016-11-09 10:07:49 +00:00
buildInputs = [ apacheHttpd python2 ];
meta = {
homepage = "http://modpython.org/";
description = "An Apache module that embeds the Python interpreter within the server";
2021-01-15 07:07:56 +00:00
platforms = lib.platforms.unix;
};
}