at 22.05-pre 39 lines 1.0 kB view raw
1{ lib, stdenv, fetchzip }: 2 3with lib; 4 5stdenv.mkDerivation rec { 6 version = "0.94"; 7 pname = "pcg-c"; 8 9 src = fetchzip { 10 url = "http://www.pcg-random.org/downloads/${pname}-${version}.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 = "https://www.pcg-random.org/"; 28 license = 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}