mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 10:24:07 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
37 lines
994 B
Nix
37 lines
994 B
Nix
{ 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.hostPlatform.isi686; # https://github.com/imneme/pcg-c/issues/11
|
|
};
|
|
}
|