@@ -0,0 +1,50 @@
1+{ stdenv, fetchurl, autoreconfHook, pkgconfig, openssl, botan, log4cplus
2+, boost, python3, postgresql, mysql, gmp, bzip2 }:
4+stdenv.mkDerivation rec {
5+ name = "${pname}-${version}";
10+ url = "https://ftp.isc.org/isc/${pname}/${version}/${name}.tar.gz";
11+ sha256 = "0b9w71d7pfgr0asqpffh9h935xpvwabyfdvdzqzna6da9zp7mnf3";
14+ patches = [ ./dont-create-var.patch ];
17+ substituteInPlace ./src/bin/keactrl/Makefile.am '@sysconfdir@' "$out/etc"
18+ substituteInPlace ./src/bin/keactrl/Makefile.am '@(sysconfdir)@' "$out/etc"
22+ "--localstatedir=/var"
23+ "--with-botan-config=${botan}/bin/botan-config-1.10"
24+ "--with-dhcp-pgsql=${postgresql}/bin/pg_config"
25+ "--with-dhcp-mysql=${mysql.client.dev}/bin/mysql_config"
28+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
30+ openssl log4cplus boost python3 mysql.client
34+ enableParallelBuilding = true;
36+ meta = with stdenv.lib; {
37+ homepage = https://kea.isc.org/;
38+ description = "High-performance, extensible DHCP server by ISC";
40+ KEA is a new open source DHCPv4/DHCPv6 server being developed by
41+ Internet Systems Consortium. The objective of this project is to
42+ provide a very high-performance, extensible DHCP server engine for
43+ use by enterprises and service providers, either as is or with
44+ extensions and modifications.
46+ license = licenses.mpl20;
47+ platforms = platforms.unix;
48+ maintainers = with maintainers; [ fpletz ];