summary refs log tree commit diff
path: root/pkgs/development/libraries/libubox/default.nix
blob: 71ac22e85a8f0b288eafb1a4e8aa300df5756605 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, lib, fetchgit, cmake, pkgconfig, json_c }:

stdenv.mkDerivation {
  name = "libubox-2017-09-29";

  src = fetchgit {
    url = "https://git.openwrt.org/project/libubox.git";
    rev = "632688e8d6cde32781e4ec685d59afb0938300ad";
    sha256 = "1rkwn287k7p802hbd9ap13xxrxsghq6827r86ymqbbcmbcrna13c";
  };

  cmakeFlags = [ "-DBUILD_LUA=OFF" "-DBUILD_EXAMPLES=OFF" ];

  nativeBuildInputs = [ cmake pkgconfig ];
  buildInputs = [ json_c ];

  meta = with lib; {
    description = "C utility functions for OpenWrt";
    homepage = "https://git.openwrt.org/?p=project/libubox.git;a=summary";
    license = licenses.isc;
    platforms = platforms.all;
    maintainers = with maintainers; [ fpletz ];
  };
}