Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 34 lines 862 B view raw
1{ stdenv, fetchurl, botan, libobjc, Security }: 2 3stdenv.mkDerivation rec { 4 5 name = "softhsm-${version}"; 6 version = "2.5.0"; 7 8 src = fetchurl { 9 url = "https://dist.opendnssec.org/source/${name}.tar.gz"; 10 sha256 = "1cijq78jr3mzg7jj11r0krawijp99p253f4qdqr94n728p7mdalj"; 11 }; 12 13 configureFlags = [ 14 "--with-crypto-backend=botan" 15 "--with-botan=${botan}" 16 "--sysconfdir=$out/etc" 17 "--localstatedir=$out/var" 18 ]; 19 20 propagatedBuildInputs = 21 stdenv.lib.optionals stdenv.isDarwin [ libobjc Security ]; 22 23 buildInputs = [ botan ]; 24 25 postInstall = "rm -rf $out/var"; 26 27 meta = with stdenv.lib; { 28 homepage = https://www.opendnssec.org/softhsm; 29 description = "Cryptographic store accessible through a PKCS #11 interface"; 30 license = licenses.bsd2; 31 maintainers = [ maintainers.leenaars ]; 32 platforms = platforms.unix; 33 }; 34}