forked from mirrors/nixpkgs
Merge pull request #195765 from mweinelt/kea-dinge
kea: various updates
This commit is contained in:
commit
38a54c5da6
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue