2021-01-17 00:15:33 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, boost
|
|
|
|
, botan2
|
|
|
|
, libmysqlclient
|
|
|
|
, log4cplus
|
|
|
|
, postgresql
|
2021-07-18 21:22:44 +00:00
|
|
|
, python3
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kea";
|
2021-08-12 14:41:47 +00:00
|
|
|
version = "1.9.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz";
|
2021-08-12 14:41:47 +00:00
|
|
|
sha256 = "08pr2qav87jmrf074v8zbqyjkl51wf6r9hhgbkzhdav9d4f9kny3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./dont-create-var.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2021-01-17 00:15:33 +00:00
|
|
|
"--enable-perfdhcp"
|
|
|
|
"--enable-shell"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--localstatedir=/var"
|
2020-10-16 20:44:37 +00:00
|
|
|
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
|
2021-01-17 00:15:33 +00:00
|
|
|
"--with-pgsql=${postgresql}/bin/pg_config"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-01-17 00:15:33 +00:00
|
|
|
boost
|
|
|
|
botan2
|
|
|
|
libmysqlclient
|
|
|
|
log4cplus
|
|
|
|
python3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) kea;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://kea.isc.org/";
|
|
|
|
description = "High-performance, extensible DHCP server by ISC";
|
|
|
|
longDescription = ''
|
2021-07-18 21:22:44 +00:00
|
|
|
Kea is a new open source DHCPv4/DHCPv6 server being developed by
|
2020-04-24 23:36:52 +00:00
|
|
|
Internet Systems Consortium. The objective of this project is to
|
|
|
|
provide a very high-performance, extensible DHCP server engine for
|
|
|
|
use by enterprises and service providers, either as is or with
|
|
|
|
extensions and modifications.
|
|
|
|
'';
|
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.unix;
|
2021-07-18 21:22:44 +00:00
|
|
|
maintainers = with maintainers; [ fpletz hexa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|