From 4287a051823e7444fcf997e2a685a9df5e968b28 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Wed, 4 Sep 2024 15:53:26 +0200 Subject: [PATCH] ubus: init at unstable-04-09-2024 Signed-off-by: Raito Bezarius --- pkgs/default.nix | 1 + pkgs/ubus/default.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/ubus/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 3c372c7..e719d4e 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -111,6 +111,7 @@ in { systemconfig = callPackage ./systemconfig {}; tufted = callPackage ./tufted {}; libubox = callPackage ./libubox {}; + ubus = callPackage ./ubus {}; uevent-watch = callPackage ./uevent-watch {}; usb-modeswitch = callPackage ./usb-modeswitch {}; writeAshScript = callPackage ./write-ash-script {}; diff --git a/pkgs/ubus/default.nix b/pkgs/ubus/default.nix new file mode 100644 index 0000000..37bd457 --- /dev/null +++ b/pkgs/ubus/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchFromGitHub, cmake, libubox, json_c }: +stdenv.mkDerivation { + pname = "ubus"; + version = "unstable-04-09-2024"; + + src = fetchFromGitHub { + owner = "openwrt"; + repo = "ubus"; + rev = "65bb027054def3b94a977229fd6ad62ddd32345b"; + hash = "sha256-n82Ub0IiuvWbnlDCoN+0hjo/1PbplEbc56kuOYMrHxQ="; + }; + + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + libubox + json_c + ]; + + cmakeFlags = [ + "-DBUILD_LUA=off" + "-DBUILD_EXAMPLES=off" + ]; +}