lol

Merge pull request #7576 from listx/pcg-c

pcg-c rng library

+56
+1
lib/maintainers.nix
··· 118 lethalman = "Luca Bruno <lucabru@src.gnome.org>"; 119 lhvwb = "Nathaniel Baxter <nathaniel.baxter@gmail.com>"; 120 linquize = "Linquize <linquize@yahoo.com.hk>"; 121 lovek323 = "Jason O'Conal <jason@oconal.id.au>"; 122 ludo = "Ludovic Courtès <ludo@gnu.org>"; 123 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
··· 118 lethalman = "Luca Bruno <lucabru@src.gnome.org>"; 119 lhvwb = "Nathaniel Baxter <nathaniel.baxter@gmail.com>"; 120 linquize = "Linquize <linquize@yahoo.com.hk>"; 121 + linus = "Linus Arver <linusarver@gmail.com>"; 122 lovek323 = "Jason O'Conal <jason@oconal.id.au>"; 123 ludo = "Ludovic Courtès <ludo@gnu.org>"; 124 madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
+38
pkgs/development/libraries/pcg-c/default.nix
···
··· 1 + { stdenv, fetchzip }: 2 + 3 + with stdenv.lib; 4 + 5 + stdenv.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 + }; 38 + }
+15
pkgs/development/libraries/pcg-c/prefix-variable.patch
···
··· 1 + diff --git a/Makefile b/Makefile 2 + index dddea44..fdb9401 100644 3 + --- a/Makefile 4 + +++ b/Makefile 5 + @@ -30,8 +30,8 @@ all: 6 + PREFIX = /usr/local 7 + 8 + install: all 9 + - install src/libpcg_random.a $PREFIX/lib 10 + - install -m 0644 include/pcg_variants.h $PREFIX/include 11 + + install src/libpcg_random.a ${PREFIX}/lib 12 + + install -m 0644 include/pcg_variants.h ${PREFIX}/include 13 + 14 + test: all 15 + cd test-low; $(MAKE) test
+2
pkgs/top-level/all-packages.nix
··· 7261 7262 pangoxsl = callPackage ../development/libraries/pangoxsl { }; 7263 7264 pcl = callPackage ../development/libraries/pcl { 7265 vtk = vtkWithQt4; 7266 };
··· 7261 7262 pangoxsl = callPackage ../development/libraries/pangoxsl { }; 7263 7264 + pcg_c = callPackage ../development/libraries/pcg-c { }; 7265 + 7266 pcl = callPackage ../development/libraries/pcl { 7267 vtk = vtkWithQt4; 7268 };