nixpkgs/pkgs/by-name/ub/ubus/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
901 B
Nix
Raw Normal View History

{
lib,
stdenv,
cmake,
fetchgit,
libubox,
libjson,
}:
2020-02-12 01:01:17 +00:00
stdenv.mkDerivation {
pname = "ubus";
version = "unstable-2023-12-18";
2020-02-12 01:01:17 +00:00
src = fetchgit {
url = "https://git.openwrt.org/project/ubus.git";
rev = "65bb027054def3b94a977229fd6ad62ddd32345b";
hash = "sha256-n82Ub0IiuvWbnlDCoN+0hjo/1PbplEbc56kuOYMrHxQ=";
2020-02-12 01:01:17 +00:00
};
cmakeFlags = [ "-DBUILD_LUA=OFF" ];
2020-02-12 01:01:17 +00:00
buildInputs = [
libubox
libjson
];
nativeBuildInputs = [ cmake ];
2024-05-14 07:27:25 +00:00
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
"-Wno-error=gnu-folding-constant"
]
);
meta = with lib; {
2020-02-12 01:01:17 +00:00
description = "OpenWrt system message/RPC bus";
homepage = "https://git.openwrt.org/?p=project/ubus.git;a=summary";
license = licenses.lgpl21Only;
2020-02-12 01:01:17 +00:00
platforms = platforms.all;
maintainers = with maintainers; [ mkg20001 ];
2020-02-12 01:01:17 +00:00
};
}