1 { lib, stdenv, fetchurl, gsl
2 , dieharder, testers }:
4 stdenv.mkDerivation rec {
9 url = "http://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-${version}.tgz";
10 hash = "sha256-bP8P+DlMVTVJrHQzNZzPyVX7JnlCYDFGIN+l5M1Lcn8=";
14 # Include missing stdint.h header
18 # Workaround build failure on -fno-common toolchains:
19 # ld: include/dieharder/parse.h:21: multiple definition of `splitbuf';
20 # include/dieharder/parse.h:21: first defined here
21 NIX_CFLAGS_COMPILE = "-fcommon";
23 buildInputs = [ gsl ];
26 tests.version = testers.testVersion { package = dieharder; };
30 description = "A Random Number Generator test suite";
31 homepage = "https://webhome.phy.duke.edu/~rgb/General/dieharder.php";
32 license = licenses.gpl2Plus;
33 maintainers = with maintainers; [ zhaofengli ];
34 platforms = platforms.unix;