Unverified Commit bf193eb2 authored by Jared Baur's avatar Jared Baur
Browse files

softhsm: enable db backend

This allows for using a sqlite database as softhsm's object store.
parent e3ff0799
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
{ 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";