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/
This commit is contained in:
parent
1ae5dd1457
commit
2695233823
27
pkgs/tools/misc/ent/default.nix
Normal file
27
pkgs/tools/misc/ent/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -725,6 +725,8 @@ let
|
||||
|
||||
enca = callPackage ../tools/text/enca { };
|
||||
|
||||
ent = callPackage ../tools/misc/ent { };
|
||||
|
||||
fasd = callPackage ../tools/misc/fasd { };
|
||||
|
||||
fop = callPackage ../tools/typesetting/fop { };
|
||||
|
Loading…
Reference in New Issue
Block a user