about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-10-13 05:16:41 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-10-13 05:17:44 +0200
commit707f2016aad8cd52a0814a57ba3e3d28bf06d62b (patch)
tree7447c2929393e5b9d91a8ce8c41f6568da0a25b1 /pkgs/tools
parent4820e2da740d45f8a434dd8c172685e18273bfc8 (diff)
kea: build with openssl instead of botan2
Botan is unfortunately lacking behind in TLSv1.3 support and other
distros have also done this swap.
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/kea/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/tools/networking/kea/default.nix b/pkgs/tools/networking/kea/default.nix
index 88a0d0a180f0c..1ad67e45f2920 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
   ];