diff --git a/pkgs/development/libraries/yyjson/default.nix b/pkgs/development/libraries/yyjson/default.nix new file mode 100644 index 000000000000..48b10368aee5 --- /dev/null +++ b/pkgs/development/libraries/yyjson/default.nix @@ -0,0 +1,29 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "yyjson"; + version = "0.7.0"; + + src = fetchFromGitHub { + owner = "ibireme"; + repo = "yyjson"; + rev = finalAttrs.version; + hash = "sha256-Cz8K+cWuDpoMY6d+ecuOvXIMc4wtx15LLvxpFibkNyw="; + }; + + nativeBuildInputs = [ + cmake + ]; + + meta = with lib; { + description = "The fastest JSON library in C"; + homepage = "https://github.com/ibireme/yyjson"; + changelog = "https://github.com/ibireme/yyjson/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ federicoschonborn ]; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dd1eabd27ac9..1a5dde7985f2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25619,6 +25619,8 @@ with pkgs; yubioath-flutter = callPackage ../applications/misc/yubioath-flutter { }; + yyjson = callPackage ../development/libraries/yyjson { }; + zchunk = callPackage ../development/libraries/zchunk { }; zeitgeist = callPackage ../development/libraries/zeitgeist { };