From ccaeab632313603db3854fdaeace9e5b6fdc7827 Mon Sep 17 00:00:00 2001 From: Michiel Leenaars Date: Mon, 18 Apr 2016 10:36:47 +0200 Subject: [PATCH] softhsm: init -> 2.1.0 --- pkgs/tools/security/softhsm/default.nix | 31 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/security/softhsm/default.nix diff --git a/pkgs/tools/security/softhsm/default.nix b/pkgs/tools/security/softhsm/default.nix new file mode 100644 index 000000000000..4bd199686763 --- /dev/null +++ b/pkgs/tools/security/softhsm/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, botan }: + +stdenv.mkDerivation rec { + + name = "softhsm-${version}"; + version = "2.1.0"; + + src = fetchurl { + url = "https://dist.opendnssec.org/source/${name}.tar.gz"; + sha256 = "0399b06f196fbfaebe73b4aeff2e2d65d0dc1901161513d0d6a94f031dcd827e"; + }; + + configureFlags = [ + "--with-crypto-backend=botan" + "--with-botan=${botan}" + "--sysconfdir=$out/etc" + "--localstatedir=$out/var" + ]; + + buildInputs = [ botan ]; + + postInstall = "rm -rf $out/var"; + + meta = { + homepage = https://www.opendnssec.org/softhsm; + description = "Cryptographic store accessible through a PKCS #11 interface"; + license = stdenv.lib.licenses.bsd2; + maintainers = stdenv.lib.maintainers.leenaars; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 049f4f39b837..59bf88485ef2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3230,6 +3230,8 @@ in snort = callPackage ../applications/networking/ids/snort { }; + softhsm = callPackage ../tools/security/softhsm { }; + solr = callPackage ../servers/search/solr { }; solvespace = callPackage ../applications/graphics/solvespace { };