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