Merge pull request #246568 from ORichterSec/sp800-90bEntropyAssessment-upstream

SP800-90B_EntropyAssessment: init at 1.1.6

authored by

Artturi and committed by
GitHub
b87ae16d 9ab37975

+52
+50
pkgs/tools/misc/SP800-90B_EntropyAssessment/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , bzip2 5 + , libdivsufsort 6 + , jsoncpp 7 + , openssl 8 + , mpfr 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "SP800-90B_EntropyAssessment"; 13 + version = "1.1.6"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "usnistgov"; 17 + repo = "SP800-90B_EntropyAssessment"; 18 + rev = "v${version}"; 19 + hash = "sha256-KZQ7kC0PbBkjLEQZIqYakQ91OvCxruhdfUwiRHtno3w="; 20 + }; 21 + 22 + buildInputs = [ bzip2 libdivsufsort jsoncpp openssl mpfr ]; 23 + 24 + postPatch = '' 25 + substituteInPlace Makefile \ 26 + --replace "-march=native" "" 27 + ''; 28 + 29 + sourceRoot = "source/cpp"; 30 + 31 + makeFlags = [ 32 + "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 33 + "ARCH=${stdenv.hostPlatform.linuxArch}" 34 + ]; 35 + 36 + installPhase = '' 37 + runHook preInstall 38 + mkdir -p $out/bin 39 + cp ea_* $out/bin 40 + runHook postInstall 41 + ''; 42 + 43 + meta = { 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.free; #this software uses the NIST software license 48 + maintainers = with lib.maintainers; [ orichter thillux ]; 49 + }; 50 + }
+2
pkgs/top-level/all-packages.nix
··· 40870 40870 40871 40871 sndio = callPackage ../misc/sndio { }; 40872 40872 40873 + SP800-90B_EntropyAssessment = callPackage ../tools/misc/SP800-90B_EntropyAssessment { }; 40874 + 40873 40875 sticky = callPackage ../applications/misc/sticky { }; 40874 40876 40875 40877 stork = darwin.apple_sdk_11_0.callPackage ../applications/misc/stork {