blob: ced4e04c0b876c8092b67fcb9f64a289d07c0e35 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib, stdenv, fetchzip }:
stdenv.mkDerivation rec {
version = "0.94";
pname = "pcg-c";
src = fetchzip {
url = "http://www.pcg-random.org/downloads/${pname}-${version}.zip";
sha256 = "0smm811xbvs03a5nc2668zd0178wnyri2h023pqffy767bpy1vlv";
};
enableParallelBuilding = true;
patches = [
./prefix-variable.patch
];
preInstall = ''
sed -i s,/usr/local,$out, Makefile
mkdir -p $out/lib $out/include
'';
meta = {
description = "Family of better random number generators";
homepage = "https://www.pcg-random.org/";
license = lib.licenses.asl20;
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 = lib.platforms.unix;
maintainers = [ lib.maintainers.linus ];
broken = stdenv.isi686; # https://github.com/imneme/pcg-c/issues/11
};
}
|