forked from mirrors/nixpkgs
57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
30 lines
740 B
Nix
30 lines
740 B
Nix
{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 ];
|
|
|
|
buildFlags = if stdenv.cc.isClang then [ "CC=clang" ] else null;
|
|
|
|
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;
|
|
};
|
|
}
|