mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 13:48:21 +03:00
dieharder: init at 3.31.1
This commit is contained in:
parent
27b8af8d1c
commit
a2e220cd65
31
pkgs/tools/security/dieharder/default.nix
Normal file
31
pkgs/tools/security/dieharder/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
10
pkgs/tools/security/dieharder/stdint.patch
Normal file
10
pkgs/tools/security/dieharder/stdint.patch
Normal file
@ -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 */
|
@ -3254,6 +3254,8 @@ with pkgs;
|
||||
|
||||
dibbler = callPackage ../tools/networking/dibbler { };
|
||||
|
||||
dieharder = callPackage ../tools/security/dieharder { };
|
||||
|
||||
diesel-cli = callPackage ../development/tools/diesel-cli {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user