2017-12-06 04:51:28 +01:00
|
|
|
{ stdenv, fetchurl, botan, libobjc, Security }:
|
2016-04-18 10:36:47 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "softhsm";
|
2018-10-03 11:14:57 +02:00
|
|
|
version = "2.5.0";
|
2016-04-18 10:36:47 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://dist.opendnssec.org/source/${pname}-${version}.tar.gz";
|
2018-10-03 11:14:57 +02:00
|
|
|
sha256 = "1cijq78jr3mzg7jj11r0krawijp99p253f4qdqr94n728p7mdalj";
|
2016-04-18 10:36:47 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-crypto-backend=botan"
|
|
|
|
"--with-botan=${botan}"
|
|
|
|
"--sysconfdir=$out/etc"
|
|
|
|
"--localstatedir=$out/var"
|
|
|
|
];
|
|
|
|
|
2017-12-06 04:51:28 +01:00
|
|
|
propagatedBuildInputs =
|
|
|
|
stdenv.lib.optionals stdenv.isDarwin [ libobjc Security ];
|
|
|
|
|
2016-04-18 10:36:47 +02:00
|
|
|
buildInputs = [ botan ];
|
|
|
|
|
|
|
|
postInstall = "rm -rf $out/var";
|
|
|
|
|
2016-11-20 18:05:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-04-18 10:36:47 +02:00
|
|
|
homepage = https://www.opendnssec.org/softhsm;
|
|
|
|
description = "Cryptographic store accessible through a PKCS #11 interface";
|
2016-11-20 18:05:18 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = [ maintainers.leenaars ];
|
2017-12-06 04:51:28 +01:00
|
|
|
platforms = platforms.unix;
|
2016-04-18 10:36:47 +02:00
|
|
|
};
|
|
|
|
}
|