From patchwork Thu Feb 15 20:52:14 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: 60420 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 5A27A27BBEA; Thu, 15 Feb 2024 20:53:59 +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 5C82227BBE2 for ; Thu, 15 Feb 2024 20:53:58 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raijp-0003IP-DL; Thu, 15 Feb 2024 15:53: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 1raijo-0003IE-6M for guix-patches@gnu.org; Thu, 15 Feb 2024 15:53: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 1raijn-0004Rb-T2 for guix-patches@gnu.org; Thu, 15 Feb 2024 15:53:43 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raik6-0005Uh-CR for guix-patches@gnu.org; Thu, 15 Feb 2024 15:54: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: Thu, 15 Feb 2024 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69135 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sharlatan Hellseher Cc: 69135@debbugs.gnu.org Received: via spool by 69135-submit@debbugs.gnu.org id=B69135.170803042521091 (code B ref 69135); Thu, 15 Feb 2024 20:54:02 +0000 Received: (at 69135) by debbugs.gnu.org; 15 Feb 2024 20:53:45 +0000 Received: from localhost ([127.0.0.1]:57588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raijp-0005U7-3D for submit@debbugs.gnu.org; Thu, 15 Feb 2024 15:53:45 -0500 Received: from mail-lj1-f180.google.com ([209.85.208.180]:57624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raijm-0005Tq-Cl for 69135@debbugs.gnu.org; Thu, 15 Feb 2024 15:53:43 -0500 Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2d109e82bd0so16135751fa.3 for <69135@debbugs.gnu.org>; Thu, 15 Feb 2024 12:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708030337; x=1708635137; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=h7Vq3vf2OQ9EPw/EcJ87Jdu6EV9eBrsPnjUR6caoWsA=; b=Dfs3WB6s+I8a3h88EwvrTz0Sd7XByCAB5Sy+vYQTSvyt27C0AuSHWXTnFtvlEDvbaP y7grnrZwj00+H+ukJOVx2SPBKmCqqZB36lwXcCivJ4jQUW+Ws1frGwHaSgfpOZFZ03fM siM+YyDuNOcmmdi4sReM1HUDyXmtyp/4T/TyvdPD0VYBs9hTa4r/pw98XbxtL3E+lJFI E4UjkaG9Ew+YeToNM1XxWO15VIkWtLCKc0Xa0jye21dlnPbfGKGtTuQA642/3m77j0nx b+XNyv+9BJ1LvVONu0CSy8sh3sc+xfcxOVdQ+lGU/VkCsztE3FvCyhFYTdM8mtBZzalW La+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708030337; x=1708635137; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h7Vq3vf2OQ9EPw/EcJ87Jdu6EV9eBrsPnjUR6caoWsA=; b=FxAO7vKzoT1yBw10LhxgwjNUng+fLE7pXhmwICnWBG0SnuGDPzq0VjUuDkfWNjw9/F MePeweJkpV23nPFj97hgMH5OQuvRzjLgUQJ18oof7gcB6BeiiywlyFT+IavIReguvTZm dLepD9VPPb3ke35W9rFSkBZwJexW1q6Shh4KQcsZNTG0ov0ALLk8UuMM9lXUQAIfUPas UgMkyyQPOGtQH9JKbAss+w2b2ptxIBrofAhvEaPFGcUqzT8fPgHAToVoQ2lfEKy9uHcy 6xSfY9wngkgNhMNjo5QwU0aG3R3DkZyLkU1O2JJQRERWzfp+GZMnz/jrEA8DFufgCdMp e7FA== X-Gm-Message-State: AOJu0YzZ6MLAZ0v/NlpNZPwuIzU2wKY9CMQhn7kZGu/amXbAb+EVP07F 2Q8+Q9kZY1cDBeStelQY6Kc8N9Z5AZmPfqbPdxN/mkRk9+N83lnZFnfwsLIE X-Google-Smtp-Source: AGHT+IEuyCBqKsZpOnPzULOy9l2bMEUVHJuxx7bBq/oOC5+rGt6qZJGRJ5C/9dUK3lyELX6afdBrMA== X-Received: by 2002:a05:651c:10a7:b0:2cd:eb9e:b372 with SMTP id k7-20020a05651c10a700b002cdeb9eb372mr1715102ljn.27.1708030336543; Thu, 15 Feb 2024 12:52:16 -0800 (PST) Received: from elephant ([5.164.220.172]) by smtp.gmail.com with ESMTPSA id r19-20020a2e80d3000000b002d11e255e2bsm396633ljg.100.2024.02.15.12.52.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 12:52:15 -0800 (PST) From: "Artyom V. Poptsov" In-Reply-To: (Sharlatan Hellseher's message of "Thu, 15 Feb 2024 11:59:36 +0000") References: Date: Thu, 15 Feb 2024 23:52:14 +0300 Message-ID: <87frxt8n7l.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 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, thank you for the patch review! Here's the updated version of the patch. - avp From 185d399014fb2e9b4129f717fc3c56b181de243b Mon Sep 17 00:00:00 2001 Message-ID: <185d399014fb2e9b4129f717fc3c56b181de243b.1708030303.git.poptsov.artyom@gmail.com> 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-xyz.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 41821af92b..4546eb59c7 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -385,6 +385,41 @@ (define-public go-github-com-djherbis-atime atimes for files.") (license license:expat))) +(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.21. + (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)")) ;)))) + (substitute* "scanner.go" + (("s := strconv.Quote\\(string\\(c\\)\\)") + "s := strconv.QuoteRune(rune(c))")))))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/dustin/gojson" + #:go ,go-1.21)) + (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-gabriel-vasile-mimetype (package (name "go-github-com-gabriel-vasile-mimetype") base-commit: 203344cc37c8a7df1ec1454381b5069d53ce7f9e -- 2.41.0