1 { lib, stdenv, fetchFromGitHub, cmake, which, testers }:
3 stdenv.mkDerivation (finalAttrs: {
5 version = "unstable-2022-04-20";
7 src = fetchFromGitHub {
10 rev = "49923ccb2143e36850bcdeb781e2bcdf5ce22f15";
11 hash = "sha256-9bMPA5FpyBp8fvG/kkT/MnhYtdqg3QzOnmDFXKwJVW0=";
15 # https://github.com/containers/yajl/pull/1
16 ./cmake-shared-static-fix.patch
19 nativeBuildInputs = [ cmake ];
22 nativeCheckInputs = [ which ];
25 tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
29 description = "Yet Another JSON Library";
31 YAJL is a small event-driven (SAX-style) JSON parser written in ANSI
32 C, and a small validating JSON generator.
34 homepage = "http://lloyd.github.com/yajl/";
35 license = lib.licenses.isc;
36 pkgConfigModules = [ "yajl" ];
37 platforms = with lib.platforms; linux ++ darwin;
38 maintainers = with lib.maintainers; [ maggesi ];