nixpkgs/pkgs/tools/misc/ent/default.nix

32 lines
793 B
Nix
Raw Normal View History

{lib, stdenv, fetchurl, unzip}:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "ent";
version = "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`";
nativeBuildInputs = [ unzip ];
2021-01-15 09:19:50 +00:00
buildFlags = lib.optional stdenv.cc.isClang "CC=clang";
2015-05-14 22:43:46 +00:00
installPhase = ''
mkdir -p $out/bin
cp ent $out/bin/
'';
meta = with lib; {
description = "Pseudorandom Number Sequence Test Program";
homepage = "https://www.fourmilab.ch/random/";
2018-09-11 21:34:10 +00:00
platforms = platforms.all;
license = licenses.publicDomain;
};
}