b6cba53df3
Semi-automatic update. These checks were done: - built on NixOS - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-keyconv -h` got 0 exit code - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-keyconv --help` got 0 exit code - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-keyconv -V` and found version 2.4.0 - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-keyconv -v` and found version 2.4.0 - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-keyconv --version` and found version 2.4.0 - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-util -h` got 0 exit code - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-util --help` got 0 exit code - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-util -V` and found version 2.4.0 - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-util -v` and found version 2.4.0 - ran `/nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0/bin/softhsm2-util --version` and found version 2.4.0 - found 2.4.0 with grep in /nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0 - found 2.4.0 in filename of file in /nix/store/cs5ycqjsa2lklgx5slaja3gshxf2g7r5-softhsm-2.4.0
34 lines
862 B
Nix
34 lines
862 B
Nix
{ stdenv, fetchurl, botan, libobjc, Security }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "softhsm-${version}";
|
|
version = "2.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://dist.opendnssec.org/source/${name}.tar.gz";
|
|
sha256 = "01ysfmq0pzr3g9laq40xwq8vg8w135d4m8n05mr1bkdavqmw3ai6";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|