diff options
author | Peter Romfeld <peter.romfeld.hk@gmail.com> | 2017-12-06 11:51:28 +0800 |
---|---|---|
committer | Peter Romfeld <peter.romfeld.hk@gmail.com> | 2017-12-06 11:51:28 +0800 |
commit | e4ce67615e8c228b446ce27fcef74d1f8dc48062 (patch) | |
tree | d27327527f0cfac7510dbffb2b2eb86fbbced0cd /pkgs/tools/security/softhsm | |
parent | fd7953d95f478c8cb0ac9db3718adb793142e31d (diff) |
softhsm: darwin support
Diffstat (limited to 'pkgs/tools/security/softhsm')
-rw-r--r-- | pkgs/tools/security/softhsm/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/security/softhsm/default.nix b/pkgs/tools/security/softhsm/default.nix index 6caf88973a617..ff3871bfbd965 100644 --- a/pkgs/tools/security/softhsm/default.nix +++ b/pkgs/tools/security/softhsm/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, botan }: +{ stdenv, fetchurl, botan, libobjc, Security }: stdenv.mkDerivation rec { @@ -17,6 +17,9 @@ stdenv.mkDerivation rec { "--localstatedir=$out/var" ]; + propagatedBuildInputs = + stdenv.lib.optionals stdenv.isDarwin [ libobjc Security ]; + buildInputs = [ botan ]; postInstall = "rm -rf $out/var"; @@ -26,6 +29,6 @@ stdenv.mkDerivation rec { description = "Cryptographic store accessible through a PKCS #11 interface"; license = licenses.bsd2; maintainers = [ maintainers.leenaars ]; - platforms = platforms.linux; + platforms = platforms.unix; }; } |