2021-01-11 08:54:33 +01:00
|
|
|
{ runCommand, lib, stdenv, cmake, fetchgit, libnl, libubox, uci, ubus, json_c }:
|
2020-02-12 02:02:34 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "netifd";
|
2020-07-11 19:08:35 +02:00
|
|
|
version = "unstable-2020-07-11";
|
2020-02-12 02:02:34 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.openwrt.org/project/netifd.git";
|
2020-07-11 19:08:35 +02:00
|
|
|
rev = "3d9bd73e8c2d8a1f78effbe92dd2495bbd2552c4";
|
|
|
|
sha256 = "085sx1gsigbi1jr19l387rc5p6ja1np6q2gb84khjd4pyiqwk840";
|
2020-02-12 02:02:34 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libnl libubox uci ubus json_c ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE \
|
2021-01-15 10:19:50 +01:00
|
|
|
-I$(echo "${lib.getDev libnl}"/include/libnl*/)"
|
2020-02-12 02:02:34 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-02-12 02:02:34 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|