2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "yyjson";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.9.0";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ibireme";
|
|
|
|
repo = "yyjson";
|
|
|
|
rev = finalAttrs.version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-iRMjiaVnsTclcdzHjlFOTmJvX3VP4omJLC8AWA/EOZk=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fastest JSON library in C";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://github.com/ibireme/yyjson";
|
|
|
|
changelog = "https://github.com/ibireme/yyjson/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2024-04-21 15:54:59 +00:00
|
|
|
platforms = lib.platforms.all;
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
})
|