2016-01-25 04:48:27 +03:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, flex }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "libconfuse";
|
2018-09-01 13:17:06 +03:00
|
|
|
version = "3.2.2";
|
2016-01-25 04:48:27 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-09-01 13:17:06 +03:00
|
|
|
sha256 = "0djjq7j9iiyqxqqrlzm476xkibjasqvgzjwkalgj1l3f2smi53aw";
|
2016-01-25 04:48:27 +03:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "libconfuse";
|
|
|
|
owner = "martinh";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook flex ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-03-17 21:40:14 +03:00
|
|
|
# On darwin the tests depend on the installed libraries because of install_name.
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckTarget = "check";
|
2016-01-25 04:48:27 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Small configuration file parser library for C";
|
|
|
|
longDescription = ''
|
|
|
|
libConfuse (previously libcfg) is a configuration file parser library
|
|
|
|
written in C. It supports sections and (lists of) values, as well as
|
|
|
|
some other features. It makes it very easy to add configuration file
|
|
|
|
capability to a program using a simple API.
|
|
|
|
|
|
|
|
The goal of libConfuse is not to be the configuration file parser library
|
|
|
|
with a gazillion of features. Instead, it aims to be easy to use and
|
|
|
|
quick to integrate with your code.
|
|
|
|
'';
|
|
|
|
license = licenses.isc;
|
2017-04-21 01:04:13 +03:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-01-25 04:48:27 +03:00
|
|
|
};
|
|
|
|
}
|