mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 07:26:54 +00:00
35 lines
862 B
Nix
35 lines
862 B
Nix
{ stdenv, fetchurl, botan, libobjc, Security }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "softhsm-${version}";
|
|
version = "2.3.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://dist.opendnssec.org/source/${name}.tar.gz";
|
|
sha256 = "09y1ladg7j0j5n780b1hdzwd2g2b5j5c54pfs7bzjviskb409mjy";
|
|
};
|
|
|
|
configureFlags = [
|
|
"--with-crypto-backend=botan"
|
|
"--with-botan=${botan}"
|
|
"--sysconfdir=$out/etc"
|
|
"--localstatedir=$out/var"
|
|
];
|
|
|
|
propagatedBuildInputs =
|
|
stdenv.lib.optionals stdenv.isDarwin [ libobjc Security ];
|
|
|
|
buildInputs = [ botan ];
|
|
|
|
postInstall = "rm -rf $out/var";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://www.opendnssec.org/softhsm;
|
|
description = "Cryptographic store accessible through a PKCS #11 interface";
|
|
license = licenses.bsd2;
|
|
maintainers = [ maintainers.leenaars ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|