diff options
author | Andrey Arapov <arno@nixaid.com> | 2015-01-28 13:59:03 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-01-28 16:45:46 +0100 |
commit | 269523382324f6e51c60222ae8351460ff27dd0a (patch) | |
tree | f813b750f180dbcf4229e2ef56fb867b6ba56173 /pkgs/tools/misc/ent | |
parent | 1ae5dd1457a81d50bd8b541ea1195c029532ef33 (diff) | |
download | nixlib-269523382324f6e51c60222ae8351460ff27dd0a.tar nixlib-269523382324f6e51c60222ae8351460ff27dd0a.tar.gz nixlib-269523382324f6e51c60222ae8351460ff27dd0a.tar.bz2 nixlib-269523382324f6e51c60222ae8351460ff27dd0a.tar.lz nixlib-269523382324f6e51c60222ae8351460ff27dd0a.tar.xz nixlib-269523382324f6e51c60222ae8351460ff27dd0a.tar.zst nixlib-269523382324f6e51c60222ae8351460ff27dd0a.zip |
Adds a new package: ent - A Pseudorandom Number Sequence Test Program
The program is useful for evaluating pseudorandom number generators for encryption and statistical sampling applications, compression algorithms, and other applications where the information density of a file is of interest. Official page http://www.fourmilab.ch/random/
Diffstat (limited to 'pkgs/tools/misc/ent')
-rw-r--r-- | pkgs/tools/misc/ent/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ent/default.nix b/pkgs/tools/misc/ent/default.nix new file mode 100644 index 000000000000..d6ad7f1d26b0 --- /dev/null +++ b/pkgs/tools/misc/ent/default.nix @@ -0,0 +1,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; + }; +} |