softhsm: enable db backend

This allows for using a sqlite database as softhsm's object store.
This commit is contained in:
Jared Baur 2024-01-31 09:51:38 -08:00
parent e3ff079965
commit bf193eb258
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, botan2, libobjc, Security }:
{ lib, stdenv, fetchurl, botan2, sqlite, libobjc, Security }:
stdenv.mkDerivation rec {
@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--with-crypto-backend=botan"
"--with-botan=${lib.getDev botan2}"
"--with-objectstore-backend-db"
"--sysconfdir=$out/etc"
"--localstatedir=$out/var"
];
@ -20,7 +21,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs =
lib.optionals stdenv.isDarwin [ libobjc Security ];
buildInputs = [ botan2 ];
buildInputs = [ botan2 sqlite ];
postInstall = "rm -rf $out/var";