nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 902 B view raw
1{ 2 lib, 3 stdenv, 4 cmake, 5 fetchgit, 6 libubox, 7 libjson, 8}: 9 10stdenv.mkDerivation { 11 pname = "ubus"; 12 version = "unstable-202-10-17"; 13 14 src = fetchgit { 15 url = "https://git.openwrt.org/project/ubus.git"; 16 rev = "60e04048a0e2f3e33651c19e62861b41be4c290f"; 17 hash = "sha256-fjxO77z+do5gZ7nLwHbC14UnP9cmZ5eANNn4X6Sudn0="; 18 }; 19 20 cmakeFlags = [ "-DBUILD_LUA=OFF" ]; 21 buildInputs = [ 22 libubox 23 libjson 24 ]; 25 nativeBuildInputs = [ cmake ]; 26 27 env.NIX_CFLAGS_COMPILE = toString ( 28 lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ 29 "-Wno-error=gnu-folding-constant" 30 ] 31 ); 32 33 meta = { 34 description = "OpenWrt system message/RPC bus"; 35 homepage = "https://git.openwrt.org/?p=project/ubus.git;a=summary"; 36 license = lib.licenses.lgpl21Only; 37 platforms = lib.platforms.all; 38 maintainers = with lib.maintainers; [ mkg20001 ]; 39 }; 40}