at 23.05-pre 36 lines 909 B view raw
1{ lib, stdenv, fetchurl, apacheHttpd, python2, libintl }: 2 3stdenv.mkDerivation rec { 4 pname = "mod_python"; 5 version = "3.5.0"; 6 7 src = fetchurl { 8 url = "http://dist.modpython.org/dist/${pname}-${version}.tgz"; 9 sha256 = "146apll3yfqk05s8fkf4acmxzqncl08bgn4rv0c1rd4qxmc91w0f"; 10 }; 11 12 patches = [ ./install.patch ]; 13 14 postPatch = '' 15 substituteInPlace dist/version.sh \ 16 --replace 'GIT=`git describe --always`' "" \ 17 --replace '-$GIT' "" 18 ''; 19 20 installFlags = [ "LIBEXECDIR=${placeholder "out"}/modules" ]; 21 22 preInstall = '' 23 mkdir -p $out/modules $out/bin 24 ''; 25 26 passthru = { inherit apacheHttpd; }; 27 28 buildInputs = [ apacheHttpd python2 ] 29 ++ lib.optional stdenv.isDarwin libintl; 30 31 meta = { 32 homepage = "http://modpython.org/"; 33 description = "An Apache module that embeds the Python interpreter within the server"; 34 platforms = lib.platforms.unix; 35 }; 36}