about summary refs log tree commit diff
path: root/pkgs/tools/networking/netifd
diff options
context:
space:
mode:
authorMilan <me@pbb.lc>2021-06-10 09:32:50 +0200
committerGitHub <noreply@github.com>2021-06-10 09:32:50 +0200
commit5f16549ccfcc896af2c7041e474c8fb55b1218bf (patch)
treed5457cfaf0919d4a92d9351bd99313b9329e5164 /pkgs/tools/networking/netifd
parent799fbc3e3c6c1fe946a290e9231f9fc2e6873b76 (diff)
libubox, ubus, uci, netifd: update (#121543)
These packages originating from OpenWRT don't see regular releases, so
this bumps them to their latest commits.

Also implements some suggestions like removing spaces from cmakeFlags
and replacing the legacy lgpl21 license with the appropriate lgpl21Only.
Diffstat (limited to 'pkgs/tools/networking/netifd')
-rw-r--r--pkgs/tools/networking/netifd/default.nix17
1 files changed, 6 insertions, 11 deletions
diff --git a/pkgs/tools/networking/netifd/default.nix b/pkgs/tools/networking/netifd/default.nix
index efa05591f521e..dc343e563a75a 100644
--- a/pkgs/tools/networking/netifd/default.nix
+++ b/pkgs/tools/networking/netifd/default.nix
@@ -1,27 +1,22 @@
-{ runCommand, lib, stdenv, cmake, fetchgit, libnl, libubox, uci, ubus, json_c }:
+{ lib, stdenv, cmake, fetchgit, libnl, libubox, uci, ubus, json_c, pkg-config }:
 
 stdenv.mkDerivation {
   pname = "netifd";
-  version = "unstable-2020-07-11";
+  version = "unstable-2021-04-03";
 
   src = fetchgit {
     url = "https://git.openwrt.org/project/netifd.git";
-    rev = "3d9bd73e8c2d8a1f78effbe92dd2495bbd2552c4";
-    sha256 = "085sx1gsigbi1jr19l387rc5p6ja1np6q2gb84khjd4pyiqwk840";
+    rev = "327da9895327bc56b23413ee91a6e6b6e0e4329d";
+    sha256 = "0jvk2hx8kbkc6d72gh9rwap8ds6qgnmny6306vvzxy68v03xikwv";
   };
 
   buildInputs = [ libnl libubox uci ubus json_c ];
-  nativeBuildInputs = [ cmake ];
-
-  preBuild = ''
-    export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE \
-      -I$(echo "${lib.getDev libnl}"/include/libnl*/)"
-  '';
+  nativeBuildInputs = [ cmake pkg-config ];
 
   meta = with lib; {
     description = "OpenWrt Network interface configuration daemon";
     homepage = "https://git.openwrt.org/?p=project/netifd.git;a=summary";
-    license = licenses.lgpl21;
+    license = licenses.lgpl21Only;
     platforms = platforms.linux;
     maintainers = with maintainers; [ petabyteboy ];
   };