diff --git a/pkgs/by-name/so/softhsm/package.nix b/pkgs/by-name/so/softhsm/package.nix index 48d64a0935d2..19be262667a4 100644 --- a/pkgs/by-name/so/softhsm/package.nix +++ b/pkgs/by-name/so/softhsm/package.nix @@ -22,6 +22,9 @@ stdenv.mkDerivation rec { "--with-objectstore-backend-db" "--sysconfdir=$out/etc" "--localstatedir=$out/var" + # The configure script checks for the sqlite3 command, but never uses it. + # Provide an arbitrary executable file for cross scenarios. + "ac_cv_path_SQLITE3=/" ]; buildInputs = [ @@ -29,6 +32,8 @@ stdenv.mkDerivation rec { sqlite ]; + strictDeps = true; + postInstall = "rm -rf $out/var"; meta = with lib; {