mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 18:54:42 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
121 lines
2.9 KiB
Nix
121 lines
2.9 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchurl,
|
|
|
|
# build time
|
|
autoreconfHook,
|
|
pkg-config,
|
|
python3Packages,
|
|
|
|
# runtime
|
|
withMysql ? stdenv.buildPlatform.system == stdenv.hostPlatform.system,
|
|
withPostgres ? stdenv.buildPlatform.system == stdenv.hostPlatform.system,
|
|
boost,
|
|
libmysqlclient,
|
|
log4cplus,
|
|
openssl,
|
|
postgresql,
|
|
python3,
|
|
|
|
# tests
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "kea";
|
|
version = "2.6.1"; # only even minor versions are stable
|
|
|
|
src = fetchurl {
|
|
url = "https://ftp.isc.org/isc/${pname}/${version}/${pname}-${version}.tar.gz";
|
|
hash = "sha256-0s4UqRwuJIrSh24pFS1ke8xeQzvGja+tDuluwWb8+tE=";
|
|
};
|
|
|
|
patches = [
|
|
./dont-create-var.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc"
|
|
# darwin special-casing just causes trouble
|
|
substituteInPlace ./m4macros/ax_crypto.m4 --replace 'apple-darwin' 'nope'
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"doc"
|
|
"man"
|
|
];
|
|
|
|
configureFlags =
|
|
[
|
|
"--enable-perfdhcp"
|
|
"--enable-shell"
|
|
"--localstatedir=/var"
|
|
"--with-openssl=${lib.getDev openssl}"
|
|
]
|
|
++ lib.optional withPostgres "--with-pgsql=${lib.getDev postgresql}/bin/pg_config"
|
|
++ lib.optional withMysql "--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config";
|
|
|
|
postConfigure = ''
|
|
# Mangle embedded paths to dev-only inputs.
|
|
sed -e "s|$NIX_STORE/[a-z0-9]\{32\}-|$NIX_STORE/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-|g" -i config.report
|
|
'';
|
|
|
|
nativeBuildInputs =
|
|
[
|
|
autoreconfHook
|
|
pkg-config
|
|
]
|
|
++ (with python3Packages; [
|
|
sphinxHook
|
|
sphinx-rtd-theme
|
|
]);
|
|
|
|
sphinxBuilders = [
|
|
"html"
|
|
"man"
|
|
];
|
|
sphinxRoot = "doc/sphinx";
|
|
|
|
buildInputs = [
|
|
boost
|
|
libmysqlclient
|
|
log4cplus
|
|
openssl
|
|
python3
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.tests = {
|
|
kea = nixosTests.kea;
|
|
prefix-delegation = nixosTests.systemd-networkd-ipv6-prefix-delegation;
|
|
networking-scripted = lib.recurseIntoAttrs {
|
|
inherit (nixosTests.networking.scripted) dhcpDefault dhcpSimple dhcpOneIf;
|
|
};
|
|
networking-networkd = lib.recurseIntoAttrs {
|
|
inherit (nixosTests.networking.networkd) dhcpDefault dhcpSimple dhcpOneIf;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
changelog = "https://downloads.isc.org/isc/kea/${version}/Kea-${version}-ReleaseNotes.txt";
|
|
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
|
|
hexa
|
|
];
|
|
};
|
|
}
|