2024-01-31 17:51:38 +00:00
|
|
|
{ lib, stdenv, fetchurl, botan2, sqlite, libobjc, Security }:
|
2016-04-18 08:36:47 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "softhsm";
|
2020-08-17 08:31:10 +00:00
|
|
|
version = "2.6.1";
|
2016-04-18 08:36:47 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://dist.opendnssec.org/source/${pname}-${version}.tar.gz";
|
2022-06-03 00:55:26 +00:00
|
|
|
hash = "sha256-YSSUcwVLzRgRUZ75qYmogKe9zDbTF8nCVFf8YU30dfI=";
|
2016-04-18 08:36:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-crypto-backend=botan"
|
2023-07-09 04:02:31 +00:00
|
|
|
"--with-botan=${lib.getDev botan2}"
|
2024-01-31 17:51:38 +00:00
|
|
|
"--with-objectstore-backend-db"
|
2016-04-18 08:36:47 +00:00
|
|
|
"--sysconfdir=$out/etc"
|
|
|
|
"--localstatedir=$out/var"
|
2024-01-31 17:51:38 +00:00
|
|
|
];
|
2016-04-18 08:36:47 +00:00
|
|
|
|
2017-12-06 03:51:28 +00:00
|
|
|
propagatedBuildInputs =
|
2021-01-15 09:19:50 +00:00
|
|
|
lib.optionals stdenv.hostPlatform.isDarwin [ libobjc Security ];
|
2017-12-06 03:51:28 +00:00
|
|
|
|
2024-01-31 17:51:38 +00:00
|
|
|
buildInputs = [ botan2 sqlite ];
|
2016-04-18 08:36:47 +00:00
|
|
|
|
|
|
|
postInstall = "rm -rf $out/var";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.opendnssec.org/softhsm";
|
2016-04-18 08:36:47 +00:00
|
|
|
description = "Cryptographic store accessible through a PKCS #11 interface";
|
2020-08-17 08:31:10 +00:00
|
|
|
longDescription = "
|
|
|
|
SoftHSM provides a software implementation of a generic
|
|
|
|
cryptographic device with a PKCS#11 interface, which is of
|
|
|
|
course especially useful in environments where a dedicated hardware
|
|
|
|
implementation of such a device - for instance a Hardware
|
|
|
|
Security Module (HSM) or smartcard - is not available.
|
|
|
|
|
|
|
|
SoftHSM follows the OASIS PKCS#11 standard, meaning it should be
|
|
|
|
able to work with many cryptographic products. SoftHSM is a
|
|
|
|
programme of The Commons Conservancy.
|
|
|
|
";
|
2016-11-20 17:05:18 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.leenaars ];
|
2017-12-06 03:51:28 +00:00
|
|
|
platforms = platforms.unix;
|
2016-04-18 08:36:47 +00:00
|
|
|
};
|
|
|
|
}
|