git.iko.soy/typeable/nixpkgs
on master help sign in
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/

commit269523382324f6e51c60222ae8351460ff27dd0a authorAndrey Arapov <arno@nixaid.com> dateWed 28 Jan 2015, 13:59 (12 years ago) parent1ae5dd1
2 files changed+29
pkgs/tools/misc/ent/default.nix+27 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/ent/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{stdenv, fetchurl, unzip}:
2+
3+stdenv.mkDerivation rec {
4+ name = "ent-1.1";
5+
6+ src = fetchurl {
7+ url = "http://www.fourmilab.ch/random/random.zip";
8+ sha256 = "1v39jlj3lzr5f99avzs2j2z6anqqd64bzm1pdf6q84a5n8nxckn1";
9+ };
10+
11+ # Work around the "unpacker appears to have produced no directories"
12+ # case that happens when the archive doesn't have a subdirectory.
13+ setSourceRoot = "sourceRoot=`pwd`";
14+
15+ buildInputs = [ unzip ];
16+
17+ installPhase = ''
18+ mkdir -p $out/bin
19+ cp ent $out/bin/
20+ '';
21+
22+ meta = {
23+ description = "Pseudorandom Number Sequence Test Program";
24+ homepage = http://www.fourmilab.ch/random/;
25+ platforms = stdenv.lib.platforms.all;
26+ };
27+}
pkgs/top-level/all-packages.nix+2
@@ -725,6 +725,8 @@ let
725725
726726 enca = callPackage ../tools/text/enca { };
727727
728+ ent = callPackage ../tools/misc/ent { };
729+
728730 fasd = callPackage ../tools/misc/fasd { };
729731
730732 fop = callPackage ../tools/typesetting/fop { };