forked from mirrors/nixpkgs
66 lines
1.5 KiB
Nix
66 lines
1.5 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, boost
|
|
, botan2
|
|
, libmysqlclient
|
|
, log4cplus
|
|
, postgresql
|
|
, python3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kea";
|
|
version = "1.9.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-EAi1Ic3YEF0or37At48saKwmAczTwf5GtbEsQNopbl0=";
|
|
};
|
|
|
|
patches = [ ./dont-create-var.patch ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-perfdhcp"
|
|
"--enable-shell"
|
|
"--localstatedir=/var"
|
|
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
|
|
"--with-pgsql=${postgresql}/bin/pg_config"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
boost
|
|
botan2
|
|
libmysqlclient
|
|
log4cplus
|
|
python3
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://kea.isc.org/";
|
|
description = "High-performance, extensible DHCP server by ISC";
|
|
longDescription = ''
|
|
KEA is a new open source DHCPv4/DHCPv6 server being developed by
|
|
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;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
};
|
|
}
|