2016-04-04 19:24:44 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libtool, autoconf, automake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-09-03 22:02:01 +01:00
|
|
|
version = "v0.99.4";
|
2016-04-04 19:24:44 +01:00
|
|
|
name = "fastjson-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "libfastjson";
|
|
|
|
owner = "rsyslog";
|
2016-09-03 22:02:01 +01:00
|
|
|
rev = "6e057a094cb225c9d80d8d6e6b1f36ca88a942dd";
|
|
|
|
sha256 = "1pn207p9zns0aqm6z5l5fdgb94wyyhaw83lyvyfdxmai74nbqs65";
|
2016-04-04 19:24:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A fast json library for C";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/rsyslog/libfastjson;
|
2016-04-04 19:24:44 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nequissimus ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; unix;
|
2016-04-04 19:24:44 +01:00
|
|
|
};
|
|
|
|
}
|