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
51
pkgs/development/libraries/iniparser/default.nix
Normal file
51
pkgs/development/libraries/iniparser/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "iniparser";
|
||||
version = "4.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ndevilla";
|
||||
repo = "iniparser";
|
||||
rev = "v${version}";
|
||||
sha256 = "0dhab6pad6wh816lr7r3jb6z273njlgw2vpw8kcfnmi7ijaqhnr5";
|
||||
};
|
||||
|
||||
patches = ./no-usr.patch;
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile \
|
||||
--replace -Wl,-soname= -Wl,-install_name,
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
preCheck = "patchShebangs test/make-tests.sh";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib
|
||||
|
||||
mkdir -p $out/include
|
||||
cp src/*.h $out/include
|
||||
|
||||
mkdir -p $out/share/doc/${pname}-${version}
|
||||
for i in AUTHORS INSTALL LICENSE README.md; do
|
||||
bzip2 -c -9 $i > $out/share/doc/${pname}-${version}/$i.bz2;
|
||||
done;
|
||||
cp -r html $out/share/doc/${pname}-${version}
|
||||
|
||||
cp libiniparser.a $out/lib
|
||||
cp libiniparser.so.1 $out/lib
|
||||
ln -s libiniparser.so.1 $out/lib/libiniparser.so
|
||||
|
||||
mkdir -p $out/lib/pkgconfig
|
||||
substituteAll ${./iniparser.pc.in} $out/lib/pkgconfig/iniparser.pc
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit (src.meta) homepage;
|
||||
description = "Free standalone ini file parsing library";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.primeos ];
|
||||
};
|
||||
}
|
||||
12
pkgs/development/libraries/iniparser/iniparser.pc.in
Normal file
12
pkgs/development/libraries/iniparser/iniparser.pc.in
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
prefix=@out@
|
||||
exec_prefix=@out@
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
datarootdir=${prefix}/share
|
||||
datadir=${datarootdir}
|
||||
|
||||
Name: libiniparser
|
||||
Description: Iniparser library
|
||||
Version: @version@
|
||||
Libs: -L${libdir} -liniparser
|
||||
Cflags: -I${includedir}
|
||||
13
pkgs/development/libraries/iniparser/no-usr.patch
Normal file
13
pkgs/development/libraries/iniparser/no-usr.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
--- a/Makefile 2017-10-20 20:30:41.494608284 +0200
|
||||
+++ b/Makefile 2017-10-20 20:33:22.279212026 +0200
|
||||
@@ -20,8 +20,8 @@
|
||||
ARFLAGS = rcv
|
||||
|
||||
SHLD = ${CC} ${CFLAGS}
|
||||
-LDSHFLAGS = -shared -Wl,-Bsymbolic
|
||||
-LDFLAGS += -Wl,-rpath -Wl,/usr/lib -Wl,-rpath,/usr/lib
|
||||
+LDSHFLAGS = -shared
|
||||
+LDFLAGS =
|
||||
|
||||
# .so.0 is for version 3.x, .so.1 is 4.x
|
||||
SO_TARGET ?= libiniparser.so.1
|
||||
Loading…
Add table
Add a link
Reference in a new issue