1 { lib, stdenv, fetchurl, gsl
4 stdenv.mkDerivation (finalAttrs: {
9 url = "http://webhome.phy.duke.edu/~rgb/General/dieharder/dieharder-${finalAttrs.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 env.NIX_CFLAGS_COMPILE = "-fcommon";
23 buildInputs = [ gsl ];
26 tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
30 description = "Random Number Generator test suite";
31 mainProgram = "dieharder";
32 homepage = "https://webhome.phy.duke.edu/~rgb/General/dieharder.php";
33 license = licenses.gpl2Plus;
34 maintainers = with maintainers; [ zhaofengli ];
35 platforms = platforms.unix;