about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorFranz Pletz2017-10-01 21:33:28 +0200
committerFranz Pletz2017-10-02 17:06:22 +0200
commit7ec039bb2b6c0055aed216ca7d06f7f518e1fd7c (patch)
tree086b075d3a237f4815afda381e0b2f1f2abd79aa /pkgs/development
parent90858501ba8d1e064b05dbb22b4d6649935565a3 (diff)
libubox: init at 2017-09-29
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/libubox/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libubox/default.nix b/pkgs/development/libraries/libubox/default.nix
new file mode 100644
index 000000000000..71ac22e85a8f
--- /dev/null
+++ b/pkgs/development/libraries/libubox/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, lib, fetchgit, cmake, pkgconfig, json_c }:
+
+stdenv.mkDerivation {
+  name = "libubox-2017-09-29";
+
+  src = fetchgit {
+    url = "https://git.openwrt.org/project/libubox.git";
+    rev = "632688e8d6cde32781e4ec685d59afb0938300ad";
+    sha256 = "1rkwn287k7p802hbd9ap13xxrxsghq6827r86ymqbbcmbcrna13c";
+  };
+
+  cmakeFlags = [ "-DBUILD_LUA=OFF" "-DBUILD_EXAMPLES=OFF" ];
+
+  nativeBuildInputs = [ cmake pkgconfig ];
+  buildInputs = [ json_c ];
+
+  meta = with lib; {
+    description = "C utility functions for OpenWrt";
+    homepage = "https://git.openwrt.org/?p=project/libubox.git;a=summary";
+    license = licenses.isc;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ fpletz ];
+  };
+}