2015-01-28 13:59:03 +01:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2015-01-28 13:59:03 +01:00
|
|
|
name = "ent-1.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 20:43:35 +02:00
|
|
|
url = "https://www.fourmilab.ch/random/random.zip";
|
2015-01-28 13:59:03 +01:00
|
|
|
sha256 = "1v39jlj3lzr5f99avzs2j2z6anqqd64bzm1pdf6q84a5n8nxckn1";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Work around the "unpacker appears to have produced no directories"
|
|
|
|
# case that happens when the archive doesn't have a subdirectory.
|
|
|
|
setSourceRoot = "sourceRoot=`pwd`";
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
2019-10-28 10:17:49 +01:00
|
|
|
buildFlags = stdenv.lib.optional stdenv.cc.isClang "CC=clang";
|
2015-05-15 00:43:46 +02:00
|
|
|
|
2015-01-28 13:59:03 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ent $out/bin/
|
|
|
|
'';
|
|
|
|
|
2018-09-11 23:34:10 +02:00
|
|
|
meta = with stdenv.lib; {
|
2015-01-28 13:59:03 +01:00
|
|
|
description = "Pseudorandom Number Sequence Test Program";
|
|
|
|
homepage = http://www.fourmilab.ch/random/;
|
2018-09-11 23:34:10 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.publicDomain;
|
2015-01-28 13:59:03 +01:00
|
|
|
};
|
|
|
|
}
|