commit
f14242e9aa
|
@ -118,6 +118,7 @@
|
||||||
lethalman = "Luca Bruno <lucabru@src.gnome.org>";
|
lethalman = "Luca Bruno <lucabru@src.gnome.org>";
|
||||||
lhvwb = "Nathaniel Baxter <nathaniel.baxter@gmail.com>";
|
lhvwb = "Nathaniel Baxter <nathaniel.baxter@gmail.com>";
|
||||||
linquize = "Linquize <linquize@yahoo.com.hk>";
|
linquize = "Linquize <linquize@yahoo.com.hk>";
|
||||||
|
linus = "Linus Arver <linusarver@gmail.com>";
|
||||||
lovek323 = "Jason O'Conal <jason@oconal.id.au>";
|
lovek323 = "Jason O'Conal <jason@oconal.id.au>";
|
||||||
ludo = "Ludovic Courtès <ludo@gnu.org>";
|
ludo = "Ludovic Courtès <ludo@gnu.org>";
|
||||||
madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
|
madjar = "Georges Dubus <georges.dubus@compiletoi.net>";
|
||||||
|
|
|
@ -0,0 +1,38 @@
|
||||||
|
{ stdenv, fetchzip }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "0.94";
|
||||||
|
name = "pcg-c-${version}";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "http://www.pcg-random.org/downloads/${name}.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 = "A family of better random number generators";
|
||||||
|
homepage = "http://www.pcg-random.org/";
|
||||||
|
license = stdenv.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 = platforms.unix;
|
||||||
|
maintainers = [ maintainers.linus ];
|
||||||
|
repositories.git = git://github.com/imneme/pcg-c.git;
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index dddea44..fdb9401 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -30,8 +30,8 @@ all:
|
||||||
|
PREFIX = /usr/local
|
||||||
|
|
||||||
|
install: all
|
||||||
|
- install src/libpcg_random.a $PREFIX/lib
|
||||||
|
- install -m 0644 include/pcg_variants.h $PREFIX/include
|
||||||
|
+ install src/libpcg_random.a ${PREFIX}/lib
|
||||||
|
+ install -m 0644 include/pcg_variants.h ${PREFIX}/include
|
||||||
|
|
||||||
|
test: all
|
||||||
|
cd test-low; $(MAKE) test
|
|
@ -7261,6 +7261,8 @@ let
|
||||||
|
|
||||||
pangoxsl = callPackage ../development/libraries/pangoxsl { };
|
pangoxsl = callPackage ../development/libraries/pangoxsl { };
|
||||||
|
|
||||||
|
pcg_c = callPackage ../development/libraries/pcg-c { };
|
||||||
|
|
||||||
pcl = callPackage ../development/libraries/pcl {
|
pcl = callPackage ../development/libraries/pcl {
|
||||||
vtk = vtkWithQt4;
|
vtk = vtkWithQt4;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue