Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
bzip2,
libdivsufsort,
jsoncpp,
openssl,
mpfr,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sp800-90b-entropyassessment";
version = "1.1.8";
src = fetchFromGitHub {
owner = "usnistgov";
repo = "SP800-90B_EntropyAssessment";
rev = "v${finalAttrs.version}";
hash = "sha256-qGJqL77IOuVx8jKDdOk4YkLPbggfn+TQtpdcYEu4hC8=";
};
buildInputs = [
bzip2
libdivsufsort
jsoncpp
openssl
mpfr
];
postPatch = ''
substituteInPlace Makefile \
--replace "-march=native" ""
'';
sourceRoot = "${finalAttrs.src.name}/cpp";
makeFlags = [
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
"ARCH=${stdenv.hostPlatform.linuxArch}"
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ea_* $out/bin
runHook postInstall
'';
meta = {
homepage = "https://github.com/usnistgov/SP800-90B_EntropyAssessment";
description = "Implementation of min-entropy assessment methods included in Special Publication 800-90B";
platforms = lib.platforms.linux;
license = lib.licenses.nistSoftware;
maintainers = with lib.maintainers; [
orichter
thillux
];
};
})