32 lines
679 B
Nix
32 lines
679 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
stdenv,
|
||
|
|
fetchFromGitHub,
|
||
|
|
cmake,
|
||
|
|
}:
|
||
|
|
|
||
|
|
stdenv.mkDerivation (finalAttrs: {
|
||
|
|
pname = "yyjson";
|
||
|
|
version = "0.12.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "ibireme";
|
||
|
|
repo = "yyjson";
|
||
|
|
rev = finalAttrs.version;
|
||
|
|
hash = "sha256-1CYnEgUMUc7eqdkv6M/KyL/MdVQBMov9HgLCycF6++w=";
|
||
|
|
};
|
||
|
|
|
||
|
|
nativeBuildInputs = [
|
||
|
|
cmake
|
||
|
|
];
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Fastest JSON library in C";
|
||
|
|
homepage = "https://github.com/ibireme/yyjson";
|
||
|
|
changelog = "https://github.com/ibireme/yyjson/blob/${finalAttrs.src.rev}/CHANGELOG.md";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
||
|
|
platforms = lib.platforms.all;
|
||
|
|
};
|
||
|
|
})
|