fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchzip }:
2
3with stdenv.lib;
4
5stdenv.mkDerivation rec {
6 version = "0.94";
7 name = "pcg-c-${version}";
8
9 src = fetchzip {
10 url = "http://www.pcg-random.org/downloads/${name}.zip";
11 sha256 = "0smm811xbvs03a5nc2668zd0178wnyri2h023pqffy767bpy1vlv";
12 };
13
14 enableParallelBuilding = true;
15
16 patches = [
17 ./prefix-variable.patch
18 ];
19
20 preInstall = ''
21 sed -i s,/usr/local,$out, Makefile
22 mkdir -p $out/lib $out/include
23 '';
24
25 meta = {
26 description = "A family of better random number generators";
27 homepage = "http://www.pcg-random.org/";
28 license = stdenv.lib.licenses.asl20;
29 longDescription = ''
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.
33 '';
34 platforms = platforms.unix;
35 maintainers = [ maintainers.linus ];
36 repositories.git = git://github.com/imneme/pcg-c.git;
37 broken = stdenv.isi686; # https://github.com/imneme/pcg-c/issues/11
38 };
39}