Commit 0714665a authored by git@71rd.net's avatar git@71rd.net
Browse files

softhsm: switch backend to openssl

Switching softhsm to use OpenSSL instead of botan2 for cryptography.
Botan2 has been end-of-life since January 2025 and can not be built with gcc-15, and softhsm does not support botan3.
parent 842db5ba
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  botan2,
  openssl,
  sqlite,
  autoreconfHook,
}:
@@ -24,8 +24,8 @@ stdenv.mkDerivation rec {
  ];

  configureFlags = [
    "--with-crypto-backend=botan"
    "--with-botan=${lib.getDev botan2}"
    "--with-crypto-backend=openssl"
    "--with-openssl=${lib.getDev openssl}"
    "--with-objectstore-backend-db"
    "--sysconfdir=$out/etc"
    "--localstatedir=$out/var"
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
  ];

  buildInputs = [
    botan2
    openssl
    sqlite
  ];