2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libtool, autoconf, automake }:
|
2016-04-04 11:24:44 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-30 03:25:14 -08:00
|
|
|
version = "0.99.9";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "fastjson";
|
2016-04-04 11:24:44 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "libfastjson";
|
|
|
|
owner = "rsyslog";
|
2018-08-07 16:32:00 -07:00
|
|
|
rev = "v${version}";
|
2021-01-30 03:25:14 -08:00
|
|
|
sha256 = "sha256-2LyBdJR0dV1CElcGfrlmNwX52lVtx9X/Z4h/1XFjOIs=";
|
2016-04-04 11:24:44 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake libtool ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sh autogen.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2016-04-04 11:24:44 -07:00
|
|
|
description = "A fast json library for C";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/rsyslog/libfastjson";
|
2016-04-04 11:24:44 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nequissimus ];
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = with platforms; unix;
|
2016-04-04 11:24:44 -07:00
|
|
|
};
|
|
|
|
}
|