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
34
pkgs/development/libraries/ntrack/default.nix
Normal file
34
pkgs/development/libraries/ntrack/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, stdenv, fetchurl, qt4, pkg-config, libnl, python3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ntrack";
|
||||
version = "016";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://launchpad.net/ntrack/main/${version}/+download/${pname}-${version}.tar.gz";
|
||||
sha256 = "037ig5y0mp327m0hh4pnfr3vmsk3wrxgfjy3645q4ws9vdhx807w";
|
||||
};
|
||||
|
||||
buildInputs = [ libnl qt4 ];
|
||||
|
||||
nativeBuildInputs = [ pkg-config python3 ];
|
||||
|
||||
# error: ISO C does not support '__FUNCTION__' predefined identifier [-Werror=pedantic]
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
configureFlags = [ "--without-gobject" "CFLAGS=--std=gnu99" ];
|
||||
|
||||
# Remove this patch after version 016
|
||||
patches = [ ./libnl-fix.patch ];
|
||||
|
||||
postPatch = ''
|
||||
sed -e "s@/usr\(/lib/ntrack/modules/\)@$out&@" -i common/ntrack.c
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Network Connectivity Tracking library for Desktop Applications";
|
||||
homepage = "https://launchpad.net/ntrack";
|
||||
platforms = platforms.linux;
|
||||
license = licenses.lgpl3Plus;
|
||||
};
|
||||
}
|
||||
11
pkgs/development/libraries/ntrack/libnl-fix.patch
Normal file
11
pkgs/development/libraries/ntrack/libnl-fix.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- ./modules/ntrack-libnl.c.orig 2013-12-02 11:31:54.749215448 -0600
|
||||
+++ ./modules/ntrack-libnl.c 2013-12-02 11:34:46.597684553 -0600
|
||||
@@ -530,7 +530,7 @@
|
||||
op_default_route_disappeared ((struct _ntrack_monitor_arch*) self, nl_info);
|
||||
} else if (nl_info->topmost_route && topmost_route) {
|
||||
int diff_bits;
|
||||
- if ((diff_bits = (route_obj_ops.oo_id_attrs | ROUTE_ATTR_OIF
|
||||
+ if ((diff_bits = (nl_object_get_id_attrs(OBJ_CAST(topmost_route)) | ROUTE_ATTR_OIF
|
||||
| ROUTE_ATTR_GATEWAY) &
|
||||
nl_object_diff (OBJ_CAST (nl_info->topmost_route),
|
||||
OBJ_CAST (topmost_route)))) {
|
||||
Loading…
Add table
Add a link
Reference in a new issue