@@ -0,0 +1,25 @@
1+{ stdenv, cmake, fetchgit, pkgconfig, libubox }:
2+
3+stdenv.mkDerivation {
4+ pname = "uci";
5+ version = "unstable-2020-01-27";
6+
7+ src = fetchgit {
8+ url = "https://git.openwrt.org/project/uci.git";
9+ rev = "e8d83732f9eb571dce71aa915ff38a072579610b";
10+ sha256 = "1si8dh8zzw4j6m7387qciw2akfvl7c4779s8q5ns2ys6dn4sz6by";
11+ };
12+
13+ hardeningDisable = [ "all" ];
14+ cmakeFlags = [ "-D BUILD_LUA:BOOL=OFF" ];
15+ buildInputs = [ libubox ];
16+ nativeBuildInputs = [ cmake pkgconfig ];
17+
18+ meta = with stdenv.lib; {
19+ description = "OpenWrt Unified Configuration Interface";
20+ homepage = "https://git.openwrt.org/?p=project/uci.git;a=summary";
21+ license = licenses.lgpl21;
22+ platforms = platforms.all;
23+ maintainers = with maintainers; [ petabyteboy ];
24+ };
25+}