nixpkgs-suyu/pkgs/tools/networking/kea/default.nix

67 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
, autoreconfHook
, pkg-config
, boost
, botan2
, libmysqlclient
, log4cplus
, postgresql
, python3 }:
2020-09-09 21:06:31 +02:00
2016-10-24 20:01:42 +02:00
stdenv.mkDerivation rec {
pname = "kea";
2021-03-03 17:59:22 +01:00
version = "1.9.5";
2016-10-24 20:01:42 +02:00
src = fetchurl {
url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz";
2021-03-03 17:59:22 +01:00
sha256 = "sha256-MkoG9IhkW+5YfkmkXUkbUl9TQXxWshnxyzdGH979nZE=";
2016-10-24 20:01:42 +02:00
};
patches = [ ./dont-create-var.patch ];
postPatch = ''
2017-08-02 19:05:20 +02:00
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@(sysconfdir)@' "$out/etc"
2016-10-24 20:01:42 +02:00
'';
configureFlags = [
"--enable-perfdhcp"
"--enable-shell"
2016-10-24 20:01:42 +02:00
"--localstatedir=/var"
2020-09-09 21:06:31 +02:00
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
"--with-pgsql=${postgresql}/bin/pg_config"
];
nativeBuildInputs = [
autoreconfHook
pkg-config
2016-10-24 20:01:42 +02:00
];
buildInputs = [
boost
botan2
libmysqlclient
log4cplus
python3
2016-10-24 20:01:42 +02:00
];
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://kea.isc.org/";
2016-10-24 20:01:42 +02:00
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 ];
};
}