nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 apacheHttpd,
3 apr,
4 aprutil,
5 directoryListingUpdater,
6 fetchurl,
7 lib,
8 openldap,
9 openssl,
10 pkg-config,
11 stdenv,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "mod_ca";
16 version = "0.2.3";
17
18 src = fetchurl {
19 url = "https://redwax.eu/dist/rs/${pname}-${version}.tar.gz";
20 hash = "sha256-HGnhypOO0WOgRw9i9oqO4da131zAwBXOdrc9dypFjyk=";
21 };
22
23 nativeBuildInputs = [ pkg-config ];
24
25 buildInputs = [
26 apacheHttpd
27 apr
28 aprutil
29 openldap
30 openssl
31 ];
32
33 # Note that configureFlags and installFlags are inherited by
34 # the various submodules.
35 #
36 configureFlags = [ "--with-apxs=${apacheHttpd.dev}/bin/apxs" ];
37
38 installFlags = [
39 "INCLUDEDIR=${placeholder "out"}/include"
40 "LIBEXECDIR=${placeholder "out"}/modules"
41 ];
42
43 passthru.updateScript = directoryListingUpdater {
44 url = "https://redwax.eu/dist/rs/";
45 };
46
47 meta = {
48 description = "RedWax CA service module";
49 homepage = "https://redwax.eu";
50 changelog = "https://source.redwax.eu/projects/RS/repos/mod_ca/browse/ChangeLog";
51 license = lib.licenses.asl20;
52 platforms = lib.platforms.unix;
53 maintainers = with lib.maintainers; [ dirkx ];
54 };
55}