summaryrefslogtreecommitdiff
path: root/pkgs/servers/http/apache-modules/mod_itk/default.nix
blob: baa050b5e8764ebfbba409d1e31fa454a4310a4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  stdenv,
  fetchurl,
  pkg-config,
  mod_ca,
  apr,
  aprutil,
  apacheHttpd,
}:

stdenv.mkDerivation rec {
  pname = "mod_itk";
  version = "2.4.7-04";

  src = fetchurl {
    url = "http://mpm-itk.sesse.net/mpm-itk-${version}.tar.gz";
    sha256 = "sha256:1kzgd1332pgpxf489kr0vdwsaik0y8wp3q282d4wa5jlk7l877v0";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [
    mod_ca
    apr
    aprutil
    apacheHttpd
  ];

  installPhase = ''
    runHook preInstall

    mkdir -p $out/modules
    ${apacheHttpd.dev}/bin/apxs -S LIBEXECDIR=$out/modules -i mpm_itk.la

    runHook postInstall
  '';

  meta = {
    description = "MPM (Multi-Processing Module) for the Apache web server";
    maintainers = [ lib.maintainers.zupo ];
    homepage = "http://mpm-itk.sesse.net/";
    license = lib.licenses.asl20;
    platforms = lib.platforms.unix;
  };
}