nixpkgs/pkgs/tools/security/softhsm/default.nix

35 lines
866 B
Nix
Raw Normal View History

2017-12-06 03:51:28 +00:00
{ stdenv, fetchurl, botan, libobjc, Security }:
2016-04-18 08:36:47 +00:00
stdenv.mkDerivation rec {
pname = "softhsm";
version = "2.5.0";
2016-04-18 08:36:47 +00:00
src = fetchurl {
url = "https://dist.opendnssec.org/source/${pname}-${version}.tar.gz";
sha256 = "1cijq78jr3mzg7jj11r0krawijp99p253f4qdqr94n728p7mdalj";
2016-04-18 08:36:47 +00:00
};
configureFlags = [
"--with-crypto-backend=botan"
"--with-botan=${botan}"
"--sysconfdir=$out/etc"
"--localstatedir=$out/var"
];
2017-12-06 03:51:28 +00:00
propagatedBuildInputs =
stdenv.lib.optionals stdenv.isDarwin [ libobjc Security ];
2016-04-18 08:36:47 +00:00
buildInputs = [ botan ];
postInstall = "rm -rf $out/var";
meta = with stdenv.lib; {
homepage = "https://www.opendnssec.org/softhsm";
2016-04-18 08:36:47 +00:00
description = "Cryptographic store accessible through a PKCS #11 interface";
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
};
}