1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/tools/security/softhsm/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

35 lines
864 B
Nix

{ stdenv, fetchurl, botan, libobjc, Security }:
stdenv.mkDerivation rec {
pname = "softhsm";
version = "2.5.0";
src = fetchurl {
url = "https://dist.opendnssec.org/source/${pname}-${version}.tar.gz";
sha256 = "1cijq78jr3mzg7jj11r0krawijp99p253f4qdqr94n728p7mdalj";
};
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;
};
}