nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 800 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 9 pname = "jsoncons"; 10 version = "1.5.0"; 11 12 src = fetchFromGitHub { 13 owner = "danielaparker"; 14 repo = "jsoncons"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-brcOFD6EO6lVL4A+LrZp6CxZFY2mu+i10IQmjwf4XMo="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 21 env.NIX_CFLAGS_COMPILE = "-std=c++20 -Wno-error"; 22 23 meta = { 24 description = "C++, header-only library for constructing JSON and JSON-like data formats"; 25 homepage = "https://danielaparker.github.io/jsoncons/"; 26 changelog = "https://github.com/danielaparker/jsoncons/blob/v${finalAttrs.version}/CHANGELOG.md"; 27 license = lib.licenses.boost; 28 maintainers = with lib.maintainers; [ sikmir ]; 29 platforms = lib.platforms.all; 30 }; 31})