diff options
author | Zhaofeng Li <hello@zhaofeng.li> | 2022-05-06 00:22:46 -0700 |
---|---|---|
committer | ehmry <ehmry@posteo.net> | 2022-05-07 07:15:17 -0500 |
commit | a2e220cd65480b2d9e8e6e6bc570d7229115aa0b (patch) | |
tree | bad4c762c758a966d2e99a953e43efbafebf9fd1 /pkgs/tools | |
parent | 27b8af8d1c2dc408656e0301932f1e6c69991779 (diff) | |
download | nixpkgs-a2e220cd65480b2d9e8e6e6bc570d7229115aa0b.tar nixpkgs-a2e220cd65480b2d9e8e6e6bc570d7229115aa0b.tar.gz nixpkgs-a2e220cd65480b2d9e8e6e6bc570d7229115aa0b.tar.bz2 nixpkgs-a2e220cd65480b2d9e8e6e6bc570d7229115aa0b.tar.lz nixpkgs-a2e220cd65480b2d9e8e6e6bc570d7229115aa0b.tar.xz nixpkgs-a2e220cd65480b2d9e8e6e6bc570d7229115aa0b.tar.zst nixpkgs-a2e220cd65480b2d9e8e6e6bc570d7229115aa0b.zip |
dieharder: init at 3.31.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/dieharder/default.nix | 31 | ||||
-rw-r--r-- | pkgs/tools/security/dieharder/stdint.patch | 10 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/security/dieharder/default.nix b/pkgs/tools/security/dieharder/default.nix new file mode 100644 index 00000000000..fc78f7c2137 --- /dev/null +++ b/pkgs/tools/security/dieharder/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchurl, gsl +, dieharder, testers }: + +stdenv.mkDerivation rec { + pname = "dieharder"; + version = "3.31.1"; + + src = fetchurl { + url = "http://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-${version}.tgz"; + hash = "sha256-bP8P+DlMVTVJrHQzNZzPyVX7JnlCYDFGIN+l5M1Lcn8="; + }; + + patches = [ + # Include missing stdint.h header + ./stdint.patch + ]; + + buildInputs = [ gsl ]; + + passthru = { + tests.version = testers.testVersion { package = dieharder; }; + }; + + meta = with lib; { + description = "A Random Number Generator test suite"; + homepage = "https://webhome.phy.duke.edu/~rgb/General/dieharder.php"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ zhaofengli ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/tools/security/dieharder/stdint.patch b/pkgs/tools/security/dieharder/stdint.patch new file mode 100644 index 00000000000..91dccfafd66 --- /dev/null +++ b/pkgs/tools/security/dieharder/stdint.patch @@ -0,0 +1,10 @@ +--- a/include/dieharder/libdieharder.h 2011-10-14 15:41:37.000000000 +0200 ++++ b/include/dieharder/libdieharder.h 2015-03-27 16:34:40.978860858 +0100 +@@ -13,6 +13,7 @@ + #include <stdlib.h> + #include <stdarg.h> + #include <string.h> ++#include <stdint.h> + #include <sys/time.h> + + /* This turns on uint macro in c99 */ |