Merge pull request #241685 from thillux/rng-tools-6.16

rng-tools: 6.15 -> 6.16
This commit is contained in:
Janik 2023-07-06 18:10:41 +02:00 committed by GitHub
commit 1af2455a6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,23 +7,25 @@
, psmisc
, argp-standalone
, openssl
, libcap
, jitterentropy, withJitterEntropy ? true
# WARNING: DO NOT USE BEACON GENERATED VALUES AS SECRET CRYPTOGRAPHIC KEYS
# https://www.nist.gov/programs-projects/nist-randomness-beacon
, curl, jansson, libxml2, withNistBeacon ? false
, libp11, opensc, withPkcs11 ? true
, rtl-sdr, withRtlsdr ? true
, withQrypt ? false
}:
stdenv.mkDerivation rec {
pname = "rng-tools";
version = "6.15";
version = "6.16";
src = fetchFromGitHub {
owner = "nhorman";
repo = pname;
rev = "v${version}";
hash = "sha256-km+MEng3VWZF07sdvGLbAG/vf8/A1DxhA/Xa2Y+LAEQ=";
hash = "sha256-9pXQhG2nbu6bq4BnBgEOyyUBNkQTI5RhWmJIoLtFU+c=";
};
nativeBuildInputs = [ autoreconfHook libtool pkg-config ];
@ -33,14 +35,16 @@ stdenv.mkDerivation rec {
(lib.withFeature (withNistBeacon) "nistbeacon")
(lib.withFeature (withPkcs11) "pkcs11")
(lib.withFeature (withRtlsdr) "rtlsdr")
(lib.withFeature (withQrypt) "qrypt")
];
buildInputs = [ openssl ]
buildInputs = [ openssl libcap ]
++ lib.optionals stdenv.hostPlatform.isMusl [ argp-standalone ]
++ lib.optionals withJitterEntropy [ jitterentropy ]
++ lib.optionals withNistBeacon [ curl jansson libxml2 ]
++ lib.optionals withPkcs11 [ libp11 libp11.passthru.openssl ]
++ lib.optionals withRtlsdr [ rtl-sdr ];
++ lib.optionals withRtlsdr [ rtl-sdr ]
++ lib.optionals withQrypt [ curl jansson ];
enableParallelBuilding = true;