2021-01-11 07:54:33 +00:00
|
|
|
{lib, stdenv, fetchurl, unzip}:
|
2015-01-28 12:59:03 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2021-08-02 09:38:45 +00:00
|
|
|
pname = "ent";
|
|
|
|
version = "1.1";
|
2015-01-28 12:59:03 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.fourmilab.ch/random/random.zip";
|
2015-01-28 12:59:03 +00: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`";
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2015-01-28 12:59:03 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
buildFlags = lib.optional stdenv.cc.isClang "CC=clang";
|
2015-05-14 22:43:46 +00:00
|
|
|
|
2015-01-28 12:59:03 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ent $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-01-28 12:59:03 +00:00
|
|
|
description = "Pseudorandom Number Sequence Test Program";
|
2022-02-05 22:59:26 +00:00
|
|
|
homepage = "https://www.fourmilab.ch/random/";
|
2018-09-11 21:34:10 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.publicDomain;
|
2015-01-28 12:59:03 +00:00
|
|
|
};
|
|
|
|
}
|