summary refs log tree commit diff
path: root/pkgs/servers/http/apache-modules/mod_ca/default.nix
blob: 37f2a397ae6d319358d07812720596f7f326f9dc (plain) (blame)
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
{ stdenv, fetchurl, pkgconfig, apacheHttpd, openssl, openldap }:

stdenv.mkDerivation rec {
  pname = "mod_ca";
  version = "0.2.1";

  src = fetchurl {
    url = "https://redwax.eu/dist/rs/${pname}-${version}.tar.gz";
    sha256 = "1pxapjrzdsk2s25vhgvf56fkakdqcbn9hjncwmqh0asl1pa25iic";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ apacheHttpd openssl openldap ];

  # Note that configureFlags and installFlags are inherited by
  # the various submodules.
  #
  configureFlags = [
    "--with-apxs=${apacheHttpd.dev}/bin/apxs"
  ];

  installFlags = [
    "INCLUDEDIR=${placeholder ''out''}/include"
    "LIBEXECDIR=${placeholder ''out''}/modules"
  ];

  meta = with stdenv.lib; {
    description = "RedWax CA service module";

    homepage = "https://redwax.eu";
    license = licenses.asl20;
    platforms = platforms.unix;
    maintainers = with maintainers; [ dirkx ];
  };
}