Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79882 from petabyteboy/feature/netifd
update libubox, uqmi; init uci, ubus, netifd
- Loading branch information
Showing
6 changed files
with
91 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters