Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 mod_ca, 7 apr, 8 aprutil, 9 apacheHttpd, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "mod_itk"; 14 version = "2.4.7-04"; 15 16 src = fetchurl { 17 url = "http://mpm-itk.sesse.net/mpm-itk-${version}.tar.gz"; 18 sha256 = "sha256:1kzgd1332pgpxf489kr0vdwsaik0y8wp3q282d4wa5jlk7l877v0"; 19 }; 20 21 nativeBuildInputs = [ pkg-config ]; 22 buildInputs = [ 23 mod_ca 24 apr 25 aprutil 26 apacheHttpd 27 ]; 28 29 installPhase = '' 30 runHook preInstall 31 32 mkdir -p $out/modules 33 ${apacheHttpd.dev}/bin/apxs -S LIBEXECDIR=$out/modules -i mpm_itk.la 34 35 runHook postInstall 36 ''; 37 38 meta = with lib; { 39 description = "MPM (Multi-Processing Module) for the Apache web server"; 40 maintainers = [ maintainers.zupo ]; 41 homepage = "http://mpm-itk.sesse.net/"; 42 license = licenses.asl20; 43 platforms = platforms.unix; 44 }; 45}