2023-10-09 19:29:22 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, which, testers }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "yajl";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "2.1.0-unstable-2024-02-01";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
src = fetchFromGitHub {
|
2023-10-09 19:29:22 +00:00
|
|
|
owner = "containers";
|
2021-07-21 07:28:18 +00:00
|
|
|
repo = "yajl";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "6bc5219389fd2752631682b0a8368e6d8218a8c5";
|
|
|
|
hash = "sha256-vY0tqCkz6PN00Qbip5ViO64L3C06fJ4JjFuIk0TWgCo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [ which ];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Yet Another JSON Library";
|
|
|
|
longDescription = ''
|
|
|
|
YAJL is a small event-driven (SAX-style) JSON parser written in ANSI
|
|
|
|
C, and a small validating JSON generator.
|
|
|
|
'';
|
|
|
|
homepage = "http://lloyd.github.com/yajl/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.isc;
|
2023-10-09 19:29:22 +00:00
|
|
|
pkgConfigModules = [ "yajl" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
|
|
|
maintainers = with lib.maintainers; [ maggesi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|