uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
38
pkgs/development/libraries/pcg-c/default.nix
Normal file
38
pkgs/development/libraries/pcg-c/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchzip }:
|
||||
|
||||
with lib;
|
||||
|
||||
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 = "A 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 = platforms.unix;
|
||||
maintainers = [ maintainers.linus ];
|
||||
broken = stdenv.isi686; # https://github.com/imneme/pcg-c/issues/11
|
||||
};
|
||||
}
|
||||
15
pkgs/development/libraries/pcg-c/prefix-variable.patch
Normal file
15
pkgs/development/libraries/pcg-c/prefix-variable.patch
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue