3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/kea/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

100 lines
2.1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchurl
# build time
, autoreconfHook
, pkg-config
# runtime
, boost
, libmysqlclient
, log4cplus
, openssl
, postgresql
2021-07-13 23:46:08 +01:00
, python3
# tests
2021-07-13 23:46:08 +01:00
, nixosTests
}:
2020-09-09 20:06:31 +01:00
2016-10-24 19:01:42 +01:00
stdenv.mkDerivation rec {
pname = "kea";
version = "2.2.0"; # only even minor versions are stable
2016-10-24 19:01:42 +01:00
src = fetchurl {
url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz";
sha256 = "sha256-2n2QymKncmAtrG535QcxkDhCKJWtaO6xQvFIfWfVMdI=";
2016-10-24 19:01:42 +01:00
};
patches = [
./dont-create-var.patch
];
2016-10-24 19:01:42 +01:00
postPatch = ''
2017-08-02 18:05:20 +01:00
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
2022-10-29 17:52:53 +01:00
# darwin special-casing just causes trouble
substituteInPlace ./m4macros/ax_crypto.m4 --replace 'apple-darwin' 'nope'
2016-10-24 19:01:42 +01:00
'';
outputs = [
"out"
"doc"
"man"
];
2016-10-24 19:01:42 +01:00
configureFlags = [
"--enable-perfdhcp"
"--enable-shell"
2016-10-24 19:01:42 +01:00
"--localstatedir=/var"
"--with-openssl=${lib.getDev openssl}"
2020-09-09 20:06:31 +01:00
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
"--with-pgsql=${postgresql}/bin/pg_config"
];
nativeBuildInputs = [
autoreconfHook
pkg-config
] ++ (with python3.pkgs; [
sphinxHook
sphinx-rtd-theme
]);
sphinxBuilders = [
"html"
"man"
2016-10-24 19:01:42 +01:00
];
sphinxRoot = "doc/sphinx";
2016-10-24 19:01:42 +01:00
buildInputs = [
boost
libmysqlclient
log4cplus
openssl
python3
2016-10-24 19:01:42 +01:00
];
enableParallelBuilding = true;
2021-07-13 23:46:08 +01:00
passthru.tests = {
kea = nixosTests.kea;
prefix-delegation = nixosTests.systemd-networkd-ipv6-prefix-delegation;
prometheus-exporter = nixosTests.prometheus-exporters.kea;
2021-07-13 23:46:08 +01:00
};
meta = with lib; {
homepage = "https://kea.isc.org/";
2016-10-24 19:01:42 +01:00
description = "High-performance, extensible DHCP server by ISC";
longDescription = ''
2021-07-13 23:46:08 +01:00
Kea is a new open source DHCPv4/DHCPv6 server being developed by
2016-10-24 19:01:42 +01: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-12 00:37:39 +01:00
maintainers = with maintainers; [ fpletz hexa ];
2016-10-24 19:01:42 +01:00
};
}