1{ stdenv, fetchFromGitHub, autoreconfHook, flex }:
2
3stdenv.mkDerivation rec {
4 name = "libconfuse-${version}";
5 version = "2.8";
6
7 src = fetchFromGitHub {
8 sha256 = "0s0asxnml4rlv17ijz5w57x949anag28wx7wdahqx6mgqz0w2j2k";
9 rev = "v${version}";
10 repo = "libconfuse";
11 owner = "martinh";
12 };
13
14 nativeBuildInputs = [ autoreconfHook flex ];
15
16 enableParallelBuilding = true;
17
18 doCheck = true;
19
20 meta = with stdenv.lib; {
21 inherit (src.meta) homepage;
22 description = "Small configuration file parser library for C";
23 longDescription = ''
24 libConfuse (previously libcfg) is a configuration file parser library
25 written in C. It supports sections and (lists of) values, as well as
26 some other features. It makes it very easy to add configuration file
27 capability to a program using a simple API.
28
29 The goal of libConfuse is not to be the configuration file parser library
30 with a gazillion of features. Instead, it aims to be easy to use and
31 quick to integrate with your code.
32 '';
33 license = licenses.isc;
34 platforms = platforms.linux;
35 maintainers = with maintainers; [ nckx ];
36 };
37}