btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / uc / uci / package.nix
blob55281e78ac744ceeabccef3e6708549fea715647
1 { lib, stdenv, cmake, fetchgit, pkg-config, libubox }:
3 stdenv.mkDerivation {
4   pname = "uci";
5   version = "unstable-2023-08-10";
7   src = fetchgit {
8     url = "https://git.openwrt.org/project/uci.git";
9     rev = "5781664d5087ccc4b5ab58505883231212dbedbc";
10     hash = "sha256-8MyFaZdAMh5oMPO/5QyNT+Or57eBL3mamJLblGGoF9g=";
11   };
13   hardeningDisable = [ "all" ];
14   cmakeFlags = [ "-DBUILD_LUA=OFF" ];
15   buildInputs = [ libubox ];
16   nativeBuildInputs = [ cmake pkg-config ];
18   meta = with lib; {
19     description = "OpenWrt Unified Configuration Interface";
20     mainProgram = "uci";
21     homepage = "https://git.openwrt.org/?p=project/uci.git;a=summary";
22     license = licenses.lgpl21Only;
23     platforms = platforms.all;
24     maintainers = with maintainers; [ mkg20001 ];
25   };