2020-12-27 21:35:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, boost
|
|
|
|
, botan2
|
|
|
|
, libmysqlclient
|
|
|
|
, log4cplus
|
|
|
|
, postgresql
|
2021-07-13 22:46:08 +00:00
|
|
|
, python3
|
|
|
|
, nixosTests
|
|
|
|
}:
|
2020-09-09 19:06:31 +00:00
|
|
|
|
2016-10-24 18:01:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kea";
|
2021-10-01 08:55:55 +00:00
|
|
|
version = "2.0.0"; # only even minor versions are stable
|
2016-10-24 18:01:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz";
|
2021-10-01 08:55:55 +00:00
|
|
|
sha256 = "sha256-BYVODDhxtFLtrOGOzMarYYlA4CSfvnwjKjbQauWb9B0=";
|
2016-10-24 18:01:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./dont-create-var.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
2017-08-02 17:05:20 +00:00
|
|
|
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
|
2016-10-24 18:01:42 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
2020-12-27 21:35:51 +00:00
|
|
|
"--enable-perfdhcp"
|
|
|
|
"--enable-shell"
|
2016-10-24 18:01:42 +00:00
|
|
|
"--localstatedir=/var"
|
2020-09-09 19:06:31 +00:00
|
|
|
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
|
2020-12-27 21:35:51 +00:00
|
|
|
"--with-pgsql=${postgresql}/bin/pg_config"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
2016-10-24 18:01:42 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2020-12-27 21:35:51 +00:00
|
|
|
boost
|
|
|
|
botan2
|
|
|
|
libmysqlclient
|
|
|
|
log4cplus
|
|
|
|
python3
|
2016-10-24 18:01:42 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-07-13 22:46:08 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) kea;
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://kea.isc.org/";
|
2016-10-24 18:01:42 +00:00
|
|
|
description = "High-performance, extensible DHCP server by ISC";
|
|
|
|
longDescription = ''
|
2021-07-13 22:46:08 +00:00
|
|
|
Kea is a new open source DHCPv4/DHCPv6 server being developed by
|
2016-10-24 18:01:42 +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-11 23:37:39 +00:00
|
|
|
maintainers = with maintainers; [ fpletz hexa ];
|
2016-10-24 18:01:42 +00:00
|
|
|
};
|
|
|
|
}
|