From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qEMoD5lo9GP4XwEAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 07:45:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oB5lDplo9GOtXQEAG6o9tA (envelope-from ) for ; Tue, 21 Feb 2023 07:45:45 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 09A562EAE6 for ; Tue, 21 Feb 2023 07:45:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUMP2-0003h9-B1; Tue, 21 Feb 2023 01:45:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUMOw-0003gq-Od for guix-patches@gnu.org; Tue, 21 Feb 2023 01:45:24 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUMOc-0006S4-Hg for guix-patches@gnu.org; Tue, 21 Feb 2023 01:45:22 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUMOc-0005Af-DF for guix-patches@gnu.org; Tue, 21 Feb 2023 01:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61672] [PATCH v2] gnu: Add nlohmann-json. References: <20230221064023.11660-1-jgart@dismail.de> In-Reply-To: <20230221064023.11660-1-jgart@dismail.de> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Feb 2023 06:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61672 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61672@debbugs.gnu.org Cc: jgart Received: via spool by 61672-submit@debbugs.gnu.org id=B61672.167696187219805 (code B ref 61672); Tue, 21 Feb 2023 06:45:02 +0000 Received: (at 61672) by debbugs.gnu.org; 21 Feb 2023 06:44:32 +0000 Received: from localhost ([127.0.0.1]:54402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUMO7-00059N-JB for submit@debbugs.gnu.org; Tue, 21 Feb 2023 01:44:31 -0500 Received: from mx1.dismail.de ([78.46.223.134]:6290) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUMO5-000594-FA for 61672@debbugs.gnu.org; Tue, 21 Feb 2023 01:44:30 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 549a6fb6 for <61672@debbugs.gnu.org>; Tue, 21 Feb 2023 07:44:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=20190914; bh=T3/qxjBwD8R+QS4p9XWui epRN7EwoaCILOtTuhG5iu0=; b=qwvOa2Ru15KtT6F67wpZTbOlyA+Pazh6gXqO4 Ggx6PQjHdISUGLwoO2whXHdnS72RZRkM3rnFHwicihgZhk4JmZQnci+jMgRoJviZ XHCejqk4du2xVu851V7ComIdQREhVoI3PFlmB85smDQpSZ7jsyCseA20pwScwMfD uXZuRYWuj0wYVpxlDb0jAZVRuGgwDAh8xmcANhqr++C8lNo/T8MuuoCFOFHkhJXS RPWRxdyDqva4hhC5+ihfZR70XX1uwfAvW4WdbsA7LnzdGC1c0NFUY9UM3mXd+UVV S01eHdKqIC+uYYFOrbkhF2/CWAEz1SXfoHFJzt1sheBfSC9rw== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 7579590b for <61672@debbugs.gnu.org>; Tue, 21 Feb 2023 07:44:21 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id cbea8385 for <61672@debbugs.gnu.org>; Tue, 21 Feb 2023 07:44:21 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 9dfd6385 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 21 Feb 2023 07:44:20 +0100 (CET) Date: Tue, 21 Feb 2023 07:43:55 +0100 Message-Id: <20230221064354.12168-1-jgart@dismail.de> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches From: jgart via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676961945; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Bk5kyorDj0VOrdVY8WXC8h8MfjYzzQbr93BLyXRr66c=; b=jH60osvmoGeXJeZG6TAbZKxSg0EertpGeQq8LFqU+mq/0isGcg3ZCvcTjPQiECG0lUST7P ZK536Z68XkxF5M9eGmve2FFeK1PEWpumB+G1Uszowk9ava+/34RtwGKJajxqDkvGQhsmOu rlwB8qhdhzhi1VMInhixR8b4ZsoULzgml2BtYoUDDY6V9s6yPXmP66rdJSZ/LiBiwzxdjo tuKjkiceW5wZep0XbxaixBobDMGd/W6oWvuvjUqlyuBMYVNwbVrENtY0P2JKbdk/qG/tln ghNGodqRopXgaEMajRL69cvEVzO55O5jDIi801Qrkryou27gM9yxdSzOpY/uoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=qwvOa2Ru; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676961945; a=rsa-sha256; cv=none; b=BuFl4IplqZ8O7pzeAIFHIaoU8Y7n0JscCtYXk+Yedrixi+iGrAU7Y0rB7fT6onv4Hvocb1 PfO7uKux+zcqYr/RR2iaqXPRk4rj1EPcjpsYVgMXmJDRH1TO3p2Ggb10F3dWCSuSC7TCZH esmcxwmqFnccm83oSlYg8wmipb+WALs+nq+AxStFDqPNQRzmBOjmWrroNGvJ/DXy0LapEE SNVGjIYh+spI62plgAbVwnfApXSKgTlBwtNz0+ygpgAk9QVRHxF2+TWUQkL/rhj7rlBu/U iwLXmz0cbChsa0I98aTarmK7XCv3wkKwx0fXvFeasxWnvkssL68kRWFCQxAevQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=qwvOa2Ru; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Queue-Id: 09A562EAE6 X-Spam-Score: -2.25 X-TUID: ctZJw48CYjsu * gnu/packages/web.scm (nlohmann-json): New variable. v2 just rebases the history --- gnu/packages/web.scm | 48 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 98db004482..e2f9dddf06 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -58,7 +58,7 @@ ;;; Copyright © 2022 cage ;;; Copyright © 2022 Pradana Aumars ;;; Copyright © 2022 Petr Hodina -;;; Copyright © 2022 jgart +;;; Copyright © 2022, 2023 jgart ;;; Copyright © 2023 Paul A. Patience ;;; Copyright © 2022 Bruno Victal ;;; Copyright © 2023 David Thompson @@ -1109,6 +1109,52 @@ (define-public jansson data.") (license license:expat))) +(define-public nlohmann-json + (package + (name "nlohmann-json") + (version "3.11.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nlohmann/json") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0g6rfsbkvrxmacchz4kbr741yybj7mls3r4hgyfdd3pdbqhn2is9")))) + (build-system cmake-build-system) + (arguments + (list #:out-of-source? #t + #:configure-flags + #~(list "-DJSON_FastTests=ON" + "-DJSON_MultipleHeaders=ON" + "-DJSON_BuildTests=ON" + (string-append "-DJSON_TestDataDirectory=" + #$(this-package-native-input "json-test-data"))) + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + ;; Skip tests that require git or modify “installed files”. + (when tests? + (invoke "make" "ARGS=-LE 'not_reproducible|git_required' --verbose"))))))) + (native-inputs + `(("json-test-data" + ,(origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nlohmann/json_test_data") + (commit "v3.1.0"))) + (sha256 + (base32 "0nbirc428qx0lpi940p7y24fzdjbwl6xig3h5rdbihyymmdzhvbc")) + (file-name (git-file-name "vis-test" version)))))) + (home-page "https://json.nlohmann.me/") + (synopsis "JSON for Modern C++") + (description "This package provides a JSON implementation with an +intuitive syntax for C++, a single include header file, and with a +codebase that has 100% code coverage.") + (license license:expat))) + (define-public json-c (package (name "json-c") -- 2.39.1