blob: d6ad7f1d26b06d3e8e0c6d379ab7f95addf31249 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
name = "ent-1.1";
src = fetchurl {
url = "http://www.fourmilab.ch/random/random.zip";
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 ];
installPhase = ''
mkdir -p $out/bin
cp ent $out/bin/
'';
meta = {
description = "Pseudorandom Number Sequence Test Program";
homepage = http://www.fourmilab.ch/random/;
platforms = stdenv.lib.platforms.all;
};
}
|