parent
27b8af8d1c
commit
a2e220cd65
@ -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; |
||||||
|
}; |
||||||
|
} |
@ -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 */
|
Loading…
Reference in new issue