3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/softhsm/default.nix

32 lines
754 B
Nix
Raw Normal View History

2016-04-18 09:36:47 +01:00
{ stdenv, fetchurl, botan }:
stdenv.mkDerivation rec {
name = "softhsm-${version}";
2017-10-24 12:52:51 +01:00
version = "2.3.0";
2016-04-18 09:36:47 +01:00
src = fetchurl {
url = "https://dist.opendnssec.org/source/${name}.tar.gz";
2017-10-24 12:52:51 +01:00
sha256 = "09y1ladg7j0j5n780b1hdzwd2g2b5j5c54pfs7bzjviskb409mjy";
2016-04-18 09:36:47 +01:00
};
configureFlags = [
"--with-crypto-backend=botan"
"--with-botan=${botan}"
"--sysconfdir=$out/etc"
"--localstatedir=$out/var"
];
buildInputs = [ botan ];
postInstall = "rm -rf $out/var";
meta = with stdenv.lib; {
2016-04-18 09:36:47 +01:00
homepage = https://www.opendnssec.org/softhsm;
description = "Cryptographic store accessible through a PKCS #11 interface";
license = licenses.bsd2;
maintainers = [ maintainers.leenaars ];
platforms = platforms.linux;
2016-04-18 09:36:47 +01:00
};
}