1 { lib, stdenv, fetchzip }:
5 stdenv.mkDerivation rec {
10 url = "http://www.pcg-random.org/downloads/${pname}-${version}.zip";
11 sha256 = "0smm811xbvs03a5nc2668zd0178wnyri2h023pqffy767bpy1vlv";
14 enableParallelBuilding = true;
17 ./prefix-variable.patch
21 sed -i s,/usr/local,$out, Makefile
22 mkdir -p $out/lib $out/include
26 description = "A family of better random number generators";
27 homepage = "https://www.pcg-random.org/";
28 license = lib.licenses.asl20;
30 PCG is a family of simple fast space-efficient statistically good
31 algorithms for random number generation. Unlike many general-purpose RNGs,
32 they are also hard to predict.
34 platforms = platforms.unix;
35 maintainers = [ maintainers.linus ];
36 broken = stdenv.isi686; # https://github.com/imneme/pcg-c/issues/11