mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 20:54:56 +00:00
32 lines
855 B
Nix
32 lines
855 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "jsoncons";
|
|
version = "1.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danielaparker";
|
|
repo = "jsoncons";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Jf+RoSRCswjF1Hq4bGdDhmAYrUEkhfQ+3ikTcXvqcl0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=tautological-overlap-compare";
|
|
|
|
meta = {
|
|
description = "C++, header-only library for constructing JSON and JSON-like data formats";
|
|
homepage = "https://danielaparker.github.io/jsoncons/";
|
|
changelog = "https://github.com/danielaparker/jsoncons/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.boost;
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|