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
22
pkgs/development/libraries/judy/cross.patch
Normal file
22
pkgs/development/libraries/judy/cross.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
--- a/src/Judy1/Makefile.am
|
||||
+++ b/src/Judy1/Makefile.am
|
||||
@@ -18,7 +18,7 @@
|
||||
libinline_la_CFLAGS = $(AM_CFLAGS) -DJUDYGETINLINE
|
||||
|
||||
Judy1Tables.c: Judy1TablesGen.c
|
||||
- $(CC) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o Judy1TablesGen Judy1TablesGen.c; ./Judy1TablesGen
|
||||
+ $(CC_FOR_BUILD) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o Judy1TablesGen Judy1TablesGen.c; ./Judy1TablesGen
|
||||
|
||||
Judy1ByCount.c:../JudyCommon/JudyByCount.c
|
||||
cp -f ../JudyCommon/JudyByCount.c Judy1ByCount.c
|
||||
--- a/src/JudyL/Makefile.am
|
||||
+++ b/src/JudyL/Makefile.am
|
||||
@@ -18,7 +18,7 @@
|
||||
libinline_la_CFLAGS = $(AM_CFLAGS) -DJUDYGETINLINE
|
||||
|
||||
JudyLTables.c: JudyLTablesGen.c
|
||||
- $(CC) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o JudyLTablesGen JudyLTablesGen.c; ./JudyLTablesGen
|
||||
+ $(CC_FOR_BUILD) $(INCLUDES) $(AM_CFLAGS) @CFLAGS@ -o JudyLTablesGen JudyLTablesGen.c; ./JudyLTablesGen
|
||||
|
||||
JudyLByCount.c: ../JudyCommon/JudyByCount.c
|
||||
cp -f ../JudyCommon/JudyByCount.c JudyLByCount.c
|
||||
28
pkgs/development/libraries/judy/default.nix
Normal file
28
pkgs/development/libraries/judy/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, stdenv, fetchurl, pkgsBuildBuild, autoreconfHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "judy";
|
||||
version = "1.0.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/judy/Judy-${version}.tar.gz";
|
||||
sha256 = "1sv3990vsx8hrza1mvq3bhvv9m6ff08y4yz7swn6znszz24l0w6j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
depsBuildBuild = [ pkgsBuildBuild.stdenv.cc ];
|
||||
patches = [ ./cross.patch ];
|
||||
|
||||
# Disable parallel builds as manpages lack some dependencies:
|
||||
# ../tool/jhton ext/JudyHS_funcs_3.htm | grep -v '^[ ]*$' | sed -e 's/\.C//' > man/man3/JudyHS_funcs
|
||||
# make[2]: *** No rule to make target 'man/man3/JSLD', needed by 'all-am'. Stop.
|
||||
# Let's wait for the upstream fix similar to https://sourceforge.net/p/judy/patches/4/
|
||||
enableParallelBuilding = false;
|
||||
|
||||
meta = {
|
||||
homepage = "http://judy.sourceforge.net/";
|
||||
license = lib.licenses.lgpl21Plus;
|
||||
description = "State-of-the-art C library that implements a sparse dynamic array";
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue