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
42
pkgs/development/libraries/log4cxx/default.nix
Normal file
42
pkgs/development/libraries/log4cxx/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchurl, libtool, libxml2, cppunit, boost
|
||||
, apr, aprutil, db, expat
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "log4cxx";
|
||||
version = "0.10.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://apache.mirrors.hoobly.com/logging/log4cxx/${version}/apache-${pname}-${version}.tar.gz";
|
||||
sha256 = "130cjafck1jlqv92mxbn47yhxd2ccwwnprk605c6lmm941i3kq0d";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# adapted from upstream commit; will be fixed in next version
|
||||
./narrowing-fixes.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '1,/^#include/ {
|
||||
/^#include/i \
|
||||
#include <cstdio> \
|
||||
#include <cstdlib> \
|
||||
#include <cstring>
|
||||
}' src/examples/cpp/console.cpp \
|
||||
src/main/cpp/inputstreamreader.cpp \
|
||||
src/main/cpp/socketoutputstream.cpp
|
||||
'' + lib.optionalString stdenv.isDarwin ''
|
||||
sed -i 's/namespace std { class locale; }/#include <locale>/' src/main/include/log4cxx/helpers/simpledateformat.h
|
||||
sed -i 's/\(#include <cctype>\)/\1\n#include <cstdlib>/' src/main/cpp/stringhelper.cpp
|
||||
'';
|
||||
|
||||
buildInputs = [ libxml2 cppunit boost apr aprutil db expat ];
|
||||
nativeBuildInputs = [ libtool ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://logging.apache.org/log4cxx/index.html";
|
||||
description = "A logging framework for C++ patterned after Apache log4j";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = lib.platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue