diff options
author | Peter Hoeg <peter@hoeg.com> | 2019-04-26 14:17:13 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2019-04-26 15:55:37 +0800 |
commit | d06cc58dab4c7502bc355f330f4d3bf05d039ec5 (patch) | |
tree | a9078bce046e04b426066b99d20f86cf1084f300 | |
parent | dfd8f84aef129f1978e446b5d45ef05cd4421821 (diff) |
rng-tools: fix missing opensc reference
-rw-r--r-- | pkgs/tools/security/rng-tools/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/tools/security/rng-tools/default.nix b/pkgs/tools/security/rng-tools/default.nix index 3e460c5f8448a..41faa375f83df 100644 --- a/pkgs/tools/security/rng-tools/default.nix +++ b/pkgs/tools/security/rng-tools/default.nix @@ -8,7 +8,7 @@ # Not sure if jitterentropy is safe to use for cryptography # and thus a default entropy source , jitterentropy ? null, withJitterEntropy ? false -, libp11 ? null, withPkcs11 ? true +, libp11 ? null, opensc ? null, withPkcs11 ? true }: with stdenv.lib; @@ -26,6 +26,11 @@ stdenv.mkDerivation rec { postPatch = '' cp README.md README + + ${optionalString withPkcs11 '' + substituteInPlace rngd.c \ + --replace /usr/lib64/opensc-pkcs11.so ${opensc}/lib/opensc-pkcs11.so + ''} ''; nativeBuildInputs = [ autoreconfHook libtool pkgconfig ]; @@ -40,7 +45,7 @@ stdenv.mkDerivation rec { buildInputs = [ sysfsutils ] ++ optionals withGcrypt [ libgcrypt ] ++ optionals withJitterEntropy [ jitterentropy ] - ++ optionals withNistBeacon [ openssl curl libxml2 ] + ++ optionals withNistBeacon [ curl libxml2 openssl ] ++ optionals withPkcs11 [ libp11 openssl ]; # This shouldn't be necessary but is as of 6.7 |