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