From patchwork Wed Feb 14 20:59:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 60310 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 754C227BBEA; Wed, 14 Feb 2024 21:01:03 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 991DA27BBE9 for ; Wed, 14 Feb 2024 21:01:01 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raMN3-0002HV-SS; Wed, 14 Feb 2024 16:00:45 -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 1raMN2-0002Gc-QJ for guix-patches@gnu.org; Wed, 14 Feb 2024 16:00:44 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raMN2-00023o-GM for guix-patches@gnu.org; Wed, 14 Feb 2024 16:00:44 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raMNK-0003eD-MB for guix-patches@gnu.org; Wed, 14 Feb 2024 16:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69135] [PATCH] gnu: Add go-github-com-dustin-gojson. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Feb 2024 21:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69135 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69135@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170794441313941 (code B ref -1); Wed, 14 Feb 2024 21:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Feb 2024 21:00:13 +0000 Received: from localhost ([127.0.0.1]:53259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raMMW-0003cn-Lc for submit@debbugs.gnu.org; Wed, 14 Feb 2024 16:00:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:44768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raMMU-0003cf-NU for submit@debbugs.gnu.org; Wed, 14 Feb 2024 16:00:11 -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 1raMMB-0001j9-TN for guix-patches@gnu.org; Wed, 14 Feb 2024 15:59:51 -0500 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raMM7-0001i9-1W for guix-patches@gnu.org; Wed, 14 Feb 2024 15:59:51 -0500 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2d0bc402c8eso1838221fa.1 for ; Wed, 14 Feb 2024 12:59:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707944385; x=1708549185; darn=gnu.org; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=c0Ih0LyXOxZZNPMUI/21HRa4R/4BvbN5vwCcKZCo8GQ=; b=hE3WgLX/l3/HVa9rnEyaRLa3x0dQ2e2an06ML2GTOMKqmSwzwAy8sWEiZ/C8zlTLaK Gt9JfVwvniiA0S3X865DAWoJt+JTgdpB0J0TqKc4tO4XpbSK04eIBrrzguOecD5H5e4h +PyUXK6sMGSpAogUytjQFGI+0+/gAE0KYhWTKPn0gZ68vL8EP7FRKUAQwLNYlyY8HYof zCg9VTWqY+CfJ6rIiqtDqggIKvf+m2FrnQG36M29SRSJ5Be/aVXHdmwHxAwnC1EOHraf vNjh/GHlnYtj3h2XceJUQCgiU4KGS+x0jpXN23040fKK8W8Xb0xNudmb4tT/19EEnbEW glIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707944385; x=1708549185; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=c0Ih0LyXOxZZNPMUI/21HRa4R/4BvbN5vwCcKZCo8GQ=; b=ljruudmXDzH0pQBsJKnA/tEXsSPm+68n0JGqwhFOK3ctxG8jHvVjafJ387qrbONk78 +BzrVxP8aZxCJjfmKJF5h7BwvXYb8VcgyrcGP0fxIG8g+MVqr7D3JdGRhR0Y35MmDP1v F9q+FlIHOXGPYkwHSYNkGWiVcBj4omA48I9EYi1pKaqlSwDprREwhpJZmcfx2Kbbs5j8 rKD7el7xbTnYK0PEN4krcLz8msBJO3mwqOZ0NuvPSd+MJqfgKBWMFVeSc9k26Vwhwtze d0VkTBo2qt5q7gGU4S6YIp+i16dmZwnTi1Ub6Omn7dRpqTbFWOTvOezPQ2Y040MSiigN U5VQ== X-Gm-Message-State: AOJu0Ywb60JureLC15TCu90T6stWDX7e4VkIxLx81ceHdczAqcLU/DvJ tb5FTyJqGAymCklIGJJPmdQ1/bXGIlN2CRHvu0aVL7yZr139Y+GqxtY4ikfl X-Google-Smtp-Source: AGHT+IG3YVN2boNdpZQki0QyjRvqqtxgYqowlLJCnyRUyT0/7O4ec2g9nzjcoHcbv/Hw4Ab5Qd2TEQ== X-Received: by 2002:a05:651c:1181:b0:2d1:1bb7:1410 with SMTP id w1-20020a05651c118100b002d11bb71410mr765232ljo.23.1707944384422; Wed, 14 Feb 2024 12:59:44 -0800 (PST) Received: from elephant ([5.164.220.172]) by smtp.gmail.com with ESMTPSA id 15-20020a2eb2cf000000b002d0a90e0d64sm975812ljz.128.2024.02.14.12.59.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 12:59:43 -0800 (PST) From: "Artyom V. Poptsov" Date: Wed, 14 Feb 2024 23:59:42 +0300 Message-ID: <87le7mzrr5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x232.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hello, this patch adds "go-github-com-dustin-gojson". [1] This is a dependency for "ejson"[2] which in turn a dependency for the latest Chezmoi[3] version. ;-) Thanks, - avp References: 1. https://github.com/dustin/gojson/ 2. https://github.com/Shopify/ejson/ 3. https://github.com/twpayne/chezmoi/ From b808163b035eff7ccc9fe2f0b068734c9a3f2898 Mon Sep 17 00:00:00 2001 Message-ID: From: "Artyom V. Poptsov" Date: Wed, 14 Feb 2024 23:55:37 +0300 Subject: [PATCH] gnu: Add go-github-com-dustin-gojson. * gnu/packages/golang.scm (go-github-com-dustin-gojson): New variable. Change-Id: Ifc3df4e7a2cdf21bf0725a848123930d61d048e3 --- gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 68e0c8eb24..645c8ba57a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4433,6 +4433,38 @@ (define-public go-gopkg-in-yaml-v3 1.1 for backwards compatibility.") (license license:asl2.0))) +(define-public go-github-com-dustin-gojson + (package + (name "go-github-com-dustin-gojson") + (version "v0.0.0-20160307161227-2e71ec9dd5ad") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dustin/gojson") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1vrmmyn7l568l1k71mxd54iqf3d54pn86cf278i374j86jn0bdxf")) + (modules '((guix build utils))) + (snippet '(begin + ;; Fix the library to work with go-1.14. + (substitute* "decode.go" + (("trying to unmarshal unquoted value into") + "trying to unmarshal unquoted value %v into")) + (substitute* "decode_test.go" + (("t.Fatalf\\(\"Unmarshal: %v\"\\)") + "t.Fatalf(\"Unmarshal: %v\", data)")))))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/dustin/gojson" + #:go ,go-1.14)) + (home-page "https://github.com/dustin/gojson") + (synopsis "Fork of go's encoding/json with the public scanner API") + (description + "Fork of go's encoding/json with the scanner API made public.") + (license license:bsd-3))) + (define-public go-github-com-matrix-org-gomatrix (package (name "go-github-com-matrix-org-gomatrix") base-commit: 6ebe912b5513bba21cf1096f865cb9a324c171a5 -- 2.41.0