summary refs log tree commit diff
path: root/pkgs/tools/networking/netifd
diff options
context:
space:
mode:
authorMilan Pässler <mil@nyantec.com>2020-02-12 02:02:34 +0100
committerMilan Pässler <mil@nyantec.com>2020-02-12 02:12:05 +0100
commitd24c4038da7fe62f18fa41e17e1eea07591f251b (patch)
treed2b1516a6768a1fb7a1b1276ef9e55e81851b609 /pkgs/tools/networking/netifd
parent6ad91bb5ca13ff97f0c20dc0e8c46a3283b3a093 (diff)
downloadnixpkgs-d24c4038da7fe62f18fa41e17e1eea07591f251b.tar
nixpkgs-d24c4038da7fe62f18fa41e17e1eea07591f251b.tar.gz
nixpkgs-d24c4038da7fe62f18fa41e17e1eea07591f251b.tar.bz2
nixpkgs-d24c4038da7fe62f18fa41e17e1eea07591f251b.tar.lz
nixpkgs-d24c4038da7fe62f18fa41e17e1eea07591f251b.tar.xz
nixpkgs-d24c4038da7fe62f18fa41e17e1eea07591f251b.tar.zst
nixpkgs-d24c4038da7fe62f18fa41e17e1eea07591f251b.zip
netifd: init at unstable-2020-01-18
Diffstat (limited to 'pkgs/tools/networking/netifd')
-rw-r--r--pkgs/tools/networking/netifd/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/networking/netifd/default.nix b/pkgs/tools/networking/netifd/default.nix
new file mode 100644
index 00000000000..38591f38fcf
--- /dev/null
+++ b/pkgs/tools/networking/netifd/default.nix
@@ -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 ];
+  };
+}