mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
Merge pull request #79882 from petabyteboy/feature/netifd
update libubox, uqmi; init uci, ubus, netifd
This commit is contained in:
commit
02fc8dc4dc
@ -1,12 +1,13 @@
|
||||
{ stdenv, lib, fetchgit, cmake, pkgconfig, json_c }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libubox-2017-09-29";
|
||||
pname = "libubox";
|
||||
version = "unstable-2020-01-20";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.openwrt.org/project/libubox.git";
|
||||
rev = "632688e8d6cde32781e4ec685d59afb0938300ad";
|
||||
sha256 = "1rkwn287k7p802hbd9ap13xxrxsghq6827r86ymqbbcmbcrna13c";
|
||||
rev = "43a103ff17ee5872669f8712606578c90c14591d";
|
||||
sha256 = "0cihgckghamcfxrvqjjn69giib80xhsqaj98ldn0gd96zqh96sd4";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-DBUILD_LUA=OFF" "-DBUILD_EXAMPLES=OFF" ];
|
||||
|
24
pkgs/development/libraries/ubus/default.nix
Normal file
24
pkgs/development/libraries/ubus/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, cmake, fetchgit, libubox, libjson }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "ubus";
|
||||
version = "unstable-2020-01-05";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.openwrt.org/project/ubus.git";
|
||||
rev = "d35df8adda873dc75d876f72b78e84db8cfa72ee";
|
||||
sha256 = "1ksrih5vfyixaafzsrs6ab88qw34d0197wvw201jl5p1fc7drgn4";
|
||||
};
|
||||
|
||||
cmakeFlags = [ "-D BUILD_LUA:BOOL=OFF" ];
|
||||
buildInputs = [ libubox libjson ];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "OpenWrt system message/RPC bus";
|
||||
homepage = "https://git.openwrt.org/?p=project/ubus.git;a=summary";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ petabyteboy ];
|
||||
};
|
||||
}
|
25
pkgs/development/libraries/uci/default.nix
Normal file
25
pkgs/development/libraries/uci/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ stdenv, cmake, fetchgit, pkgconfig, libubox }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "uci";
|
||||
version = "unstable-2020-01-27";
|
||||
|
||||
src = fetchgit {
|
||||
url = "https://git.openwrt.org/project/uci.git";
|
||||
rev = "e8d83732f9eb571dce71aa915ff38a072579610b";
|
||||
sha256 = "1si8dh8zzw4j6m7387qciw2akfvl7c4779s8q5ns2ys6dn4sz6by";
|
||||
};
|
||||
|
||||
hardeningDisable = [ "all" ];
|
||||
cmakeFlags = [ "-D BUILD_LUA:BOOL=OFF" ];
|
||||
buildInputs = [ libubox ];
|
||||
nativeBuildInputs = [ cmake pkgconfig ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "OpenWrt Unified Configuration Interface";
|
||||
homepage = "https://git.openwrt.org/?p=project/uci.git;a=summary";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ petabyteboy ];
|
||||
};
|
||||
}
|
28
pkgs/tools/networking/netifd/default.nix
Normal file
28
pkgs/tools/networking/netifd/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 = ''
|
||||
|
@ -4267,6 +4267,8 @@ in
|
||||
|
||||
netmask = callPackage ../tools/networking/netmask {};
|
||||
|
||||
netifd = callPackage ../tools/networking/netifd {};
|
||||
|
||||
ipscan = callPackage ../tools/security/ipscan { };
|
||||
|
||||
ipv6calc = callPackage ../tools/networking/ipv6calc {};
|
||||
@ -11137,6 +11139,10 @@ in
|
||||
|
||||
cpp-netlib = callPackage ../development/libraries/cpp-netlib {};
|
||||
|
||||
ubus = callPackage ../development/libraries/ubus { };
|
||||
|
||||
uci = callPackage ../development/libraries/uci { };
|
||||
|
||||
uri = callPackage ../development/libraries/uri { };
|
||||
|
||||
cppcms = callPackage ../development/libraries/cppcms { };
|
||||
|
Loading…
Reference in New Issue
Block a user