2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2015-04-25 23:17:40 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
with lib;
|
2015-04-25 23:17:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.94";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pcg-c";
|
2015-04-25 23:17:40 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "http://www.pcg-random.org/downloads/${pname}-${version}.zip";
|
2015-04-25 23:17:40 +00:00
|
|
|
sha256 = "0smm811xbvs03a5nc2668zd0178wnyri2h023pqffy767bpy1vlv";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./prefix-variable.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
sed -i s,/usr/local,$out, Makefile
|
|
|
|
mkdir -p $out/lib $out/include
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A family of better random number generators";
|
2020-04-24 15:00:11 +00:00
|
|
|
homepage = "https://www.pcg-random.org/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.asl20;
|
2015-04-25 23:17:40 +00:00
|
|
|
longDescription = ''
|
|
|
|
PCG is a family of simple fast space-efficient statistically good
|
|
|
|
algorithms for random number generation. Unlike many general-purpose RNGs,
|
|
|
|
they are also hard to predict.
|
|
|
|
'';
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.linus ];
|
2020-04-01 01:11:51 +00:00
|
|
|
repositories.git = "git://github.com/imneme/pcg-c.git";
|
2015-09-02 18:35:46 +00:00
|
|
|
broken = stdenv.isi686; # https://github.com/imneme/pcg-c/issues/11
|
2015-04-25 23:17:40 +00:00
|
|
|
};
|
|
|
|
}
|