1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 19:26:02 +00:00
nixpkgs/pkgs/tools/misc/ent/default.nix

31 lines
783 B
Nix
Raw Normal View History

{stdenv, fetchurl, unzip}:
stdenv.mkDerivation rec {
name = "ent-1.1";
src = fetchurl {
url = "https://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 ];
2015-05-14 23:43:46 +01:00
buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null;
installPhase = ''
mkdir -p $out/bin
cp ent $out/bin/
'';
2018-09-11 22:34:10 +01:00
meta = with stdenv.lib; {
description = "Pseudorandom Number Sequence Test Program";
homepage = http://www.fourmilab.ch/random/;
2018-09-11 22:34:10 +01:00
platforms = platforms.all;
license = licenses.publicDomain;
};
}