11 stdenv.mkDerivation (finalAttrs: {
12 pname = "sp800-90b-entropyassessment";
15 src = fetchFromGitHub {
17 repo = "SP800-90B_EntropyAssessment";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-KZQ7kC0PbBkjLEQZIqYakQ91OvCxruhdfUwiRHtno3w=";
22 buildInputs = [ bzip2 libdivsufsort jsoncpp openssl mpfr ];
25 substituteInPlace Makefile \
26 --replace "-march=native" ""
29 sourceRoot = "${finalAttrs.src.name}/cpp";
32 "CROSS_COMPILE=${stdenv.cc.targetPrefix}"
33 "ARCH=${stdenv.hostPlatform.linuxArch}"
44 homepage = "https://github.com/usnistgov/SP800-90B_EntropyAssessment";
45 description = "Implementation of min-entropy assessment methods included in Special Publication 800-90B";
46 platforms = lib.platforms.linux;
47 license = lib.licenses.nistSoftware;
48 maintainers = with lib.maintainers; [ orichter thillux ];