2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, apacheHttpd, openssl, openldap, apr, aprutil }:
|
2019-12-24 17:01:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mod_ca";
|
2020-02-15 17:01:49 +01:00
|
|
|
version = "0.2.2";
|
2019-12-24 17:01:04 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://redwax.eu/dist/rs/${pname}-${version}.tar.gz";
|
2020-02-15 17:01:49 +01:00
|
|
|
sha256 = "0gs66br3aig749rzifxn6j1rz2kps4hc4jppscly48lypgyygy8s";
|
2019-12-24 17:01:04 +01:00
|
|
|
};
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-02-15 17:01:49 +01:00
|
|
|
buildInputs = [ apacheHttpd openssl openldap apr aprutil ];
|
2019-12-24 17:01:04 +01:00
|
|
|
|
|
|
|
# Note that configureFlags and installFlags are inherited by
|
|
|
|
# the various submodules.
|
|
|
|
#
|
|
|
|
configureFlags = [
|
|
|
|
"--with-apxs=${apacheHttpd.dev}/bin/apxs"
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
2021-01-24 10:19:10 +01:00
|
|
|
"INCLUDEDIR=${placeholder "out"}/include"
|
|
|
|
"LIBEXECDIR=${placeholder "out"}/modules"
|
2019-12-24 17:01:04 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-12-24 17:01:04 +01:00
|
|
|
description = "RedWax CA service module";
|
|
|
|
|
|
|
|
homepage = "https://redwax.eu";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ dirkx ];
|
|
|
|
};
|
|
|
|
}
|