diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/fastjson')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/fastjson/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/fastjson/default.nix b/nixpkgs/pkgs/development/libraries/fastjson/default.nix new file mode 100644 index 000000000000..e4a169ef8ba9 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/fastjson/default.nix @@ -0,0 +1,27 @@ +{ lib, stdenv, fetchFromGitHub, libtool, autoconf, automake }: + +stdenv.mkDerivation rec { + version = "0.99.9"; + pname = "fastjson"; + src = fetchFromGitHub { + repo = "libfastjson"; + owner = "rsyslog"; + rev = "v${version}"; + sha256 = "sha256-2LyBdJR0dV1CElcGfrlmNwX52lVtx9X/Z4h/1XFjOIs="; + }; + + nativeBuildInputs = [ autoconf automake ]; + buildInputs = [ libtool ]; + + preConfigure = '' + sh autogen.sh + ''; + + meta = with lib; { + description = "A fast json library for C"; + homepage = "https://github.com/rsyslog/libfastjson"; + license = licenses.mit; + maintainers = with maintainers; [ nequissimus ]; + platforms = with platforms; unix; + }; +} |