From 707f2016aad8cd52a0814a57ba3e3d28bf06d62b Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 13 Oct 2022 05:16:41 +0200 Subject: [PATCH] kea: build with openssl instead of botan2 Botan is unfortunately lacking behind in TLSv1.3 support and other distros have also done this swap. --- pkgs/tools/networking/kea/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/kea/default.nix b/pkgs/tools/networking/kea/default.nix index 88a0d0a180f0..1ad67e45f292 100644 --- a/pkgs/tools/networking/kea/default.nix +++ b/pkgs/tools/networking/kea/default.nix @@ -1,14 +1,20 @@ { stdenv , lib , fetchurl + +# build time , autoreconfHook , pkg-config + +# runtime , boost -, botan2 , libmysqlclient , log4cplus +, openssl , postgresql , python3 + +# tests , nixosTests }: @@ -21,7 +27,9 @@ stdenv.mkDerivation rec { sha256 = "sha256-2n2QymKncmAtrG535QcxkDhCKJWtaO6xQvFIfWfVMdI="; }; - patches = [ ./dont-create-var.patch ]; + patches = [ + ./dont-create-var.patch + ]; postPatch = '' substituteInPlace ./src/bin/keactrl/Makefile.am --replace '@sysconfdir@' "$out/etc" @@ -31,6 +39,7 @@ stdenv.mkDerivation rec { "--enable-perfdhcp" "--enable-shell" "--localstatedir=/var" + "--with-openssl=${lib.getDev openssl}" "--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config" "--with-pgsql=${postgresql}/bin/pg_config" ]; @@ -42,9 +51,9 @@ stdenv.mkDerivation rec { buildInputs = [ boost - botan2 libmysqlclient log4cplus + openssl python3 ];