1{ lib, stdenv, fetchurl, pkg-config, apacheHttpd, openssl, openldap, apr, aprutil }:
2
3stdenv.mkDerivation rec {
4 pname = "mod_ca";
5 version = "0.2.2";
6
7 src = fetchurl {
8 url = "https://redwax.eu/dist/rs/${pname}-${version}.tar.gz";
9 sha256 = "0gs66br3aig749rzifxn6j1rz2kps4hc4jppscly48lypgyygy8s";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ apacheHttpd openssl openldap apr aprutil ];
14
15 # Note that configureFlags and installFlags are inherited by
16 # the various submodules.
17 #
18 configureFlags = [
19 "--with-apxs=${apacheHttpd.dev}/bin/apxs"
20 ];
21
22 installFlags = [
23 "INCLUDEDIR=${placeholder "out"}/include"
24 "LIBEXECDIR=${placeholder "out"}/modules"
25 ];
26
27 meta = with lib; {
28 description = "RedWax CA service module";
29
30 homepage = "https://redwax.eu";
31 license = licenses.asl20;
32 platforms = platforms.unix;
33 maintainers = with maintainers; [ dirkx ];
34 };
35}