3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #195765 from mweinelt/kea-dinge

kea: various updates
This commit is contained in:
Jörg Thalheim 2022-10-13 13:43:36 +02:00 committed by GitHub
commit 38a54c5da6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,20 @@
{ stdenv
, lib
, fetchurl
# build time
, autoreconfHook
, pkg-config
# runtime
, boost
, botan2
, libmysqlclient
, log4cplus
, openssl
, postgresql
, python3
# tests
, nixosTests
}:
@ -21,16 +27,25 @@ stdenv.mkDerivation rec {
sha256 = "sha256-2n2QymKncmAtrG535QcxkDhCKJWtaO6xQvFIfWfVMdI=";
};
patches = [ ./dont-create-var.patch ];
patches = [
./dont-create-var.patch
];
postPatch = ''
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
'';
outputs = [
"out"
"doc"
"man"
];
configureFlags = [
"--enable-perfdhcp"
"--enable-shell"
"--localstatedir=/var"
"--with-openssl=${lib.getDev openssl}"
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
"--with-pgsql=${postgresql}/bin/pg_config"
];
@ -38,20 +53,31 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoreconfHook
pkg-config
] ++ (with python3.pkgs; [
sphinxHook
sphinx-rtd-theme
]);
sphinxBuilders = [
"html"
"man"
];
sphinxRoot = "doc/sphinx";
buildInputs = [
boost
botan2
libmysqlclient
log4cplus
openssl
python3
];
enableParallelBuilding = true;
passthru.tests = {
inherit (nixosTests) kea systemd-networkd-ipv6-prefix-delegation;
kea = nixosTests.kea;
prefix-delegation = nixosTests.systemd-networkd-ipv6-prefix-delegation;
prometheus-exporter = nixosTests.prometheus-exporters.kea;
};
meta = with lib; {