2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, botan2, libobjc, Security }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "softhsm";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "2.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dist.opendnssec.org/source/${pname}-${version}.tar.gz";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-YSSUcwVLzRgRUZ75qYmogKe9zDbTF8nCVFf8YU30dfI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-crypto-backend=botan"
|
2023-07-15 17:15:38 +00:00
|
|
|
"--with-botan=${lib.getDev botan2}"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--sysconfdir=$out/etc"
|
|
|
|
"--localstatedir=$out/var"
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs =
|
2021-01-15 22:18:51 +00:00
|
|
|
lib.optionals stdenv.isDarwin [ libobjc Security ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildInputs = [ botan2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
postInstall = "rm -rf $out/var";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.opendnssec.org/softhsm";
|
|
|
|
description = "Cryptographic store accessible through a PKCS #11 interface";
|
2020-08-20 17:08:02 +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.
|
|
|
|
";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.leenaars ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|