Merge pull request #79882 from petabyteboy/feature/netifd

update libubox, uqmi; init uci, ubus, netifd
This commit is contained in:
Franz Pletz
2020-02-23 17:11:59 +00:00
committed by GitHub
6 changed files with 91 additions and 6 deletions

View File

@@ -0,0 +1,28 @@
{ runCommand, stdenv, cmake, fetchgit, libnl, libubox, uci, ubus, json_c }:
stdenv.mkDerivation {
pname = "netifd";
version = "unstable-2020-01-18";
src = fetchgit {
url = "https://git.openwrt.org/project/netifd.git";
rev = "1321c1bd8fe921986c4eb39c3783ddd827b79543";
sha256 = "178pckyf1cydi6zzr4bmhksv8vyaks91zv9lqqd2z5nkmccl6vf3";
};
buildInputs = [ libnl libubox uci ubus json_c ];
nativeBuildInputs = [ cmake ];
preBuild = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE \
-I$(echo "${stdenv.lib.getDev libnl}"/include/libnl*/)"
'';
meta = with stdenv.lib; {
description = "OpenWrt Network interface configuration daemon";
homepage = "https://git.openwrt.org/?p=project/netifd.git;a=summary";
license = licenses.lgpl21;
platforms = platforms.linux;
maintainers = with maintainers; [ petabyteboy ];
};
}

View File

@@ -1,12 +1,13 @@
{ stdenv, lib, fetchgit, cmake, perl, libubox, json_c }:
stdenv.mkDerivation {
name = "uqmi-2016-12-19";
pname = "uqmi";
version = "unstable-2019-06-27";
src = fetchgit {
url = "https://git.openwrt.org/project/uqmi.git";
rev = "8ceeab690d8c6f1e3afbd4bcaee7bc2ba3fbe165";
sha256 = "1fw9r36d024iiq6bq2cikaq5pams5pnbc4z6pcmcny2k4l5cdb6m";
rev = "1965c713937495a5cb029165c16acdb6572c3f87";
sha256 = "1gn8sdcl4lwfs3lwabmnjbvdhhk1l42bwbajwds7j4936fpbklx0";
};
postPatch = ''