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)
downloadnixpkgs-5f16549ccfcc896af2c7041e474c8fb55b1218bf.tar
nixpkgs-5f16549ccfcc896af2c7041e474c8fb55b1218bf.tar.gz
nixpkgs-5f16549ccfcc896af2c7041e474c8fb55b1218bf.tar.bz2
nixpkgs-5f16549ccfcc896af2c7041e474c8fb55b1218bf.tar.lz
nixpkgs-5f16549ccfcc896af2c7041e474c8fb55b1218bf.tar.xz
nixpkgs-5f16549ccfcc896af2c7041e474c8fb55b1218bf.tar.zst
nixpkgs-5f16549ccfcc896af2c7041e474c8fb55b1218bf.zip
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 efa05591f52..dc343e563a7 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 ];
   };