From patchwork Fri Jul 9 16:19:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 31265 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 F1FB227BC81; Fri, 9 Jul 2021 17:26:52 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C022427BC78 for ; Fri, 9 Jul 2021 17:26:52 +0100 (BST) Received: from localhost ([::1]:48674 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1tL1-0004lP-QQ for patchwork@mira.cbaines.net; Fri, 09 Jul 2021 12:26:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1tEQ-0005vL-Ko for guix-patches@gnu.org; Fri, 09 Jul 2021 12:20:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48042) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1tEQ-0005Wm-CE for guix-patches@gnu.org; Fri, 09 Jul 2021 12:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1tEQ-0004Ji-6S for guix-patches@gnu.org; Fri, 09 Jul 2021 12:20:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49494] [PATCH 2/7] gnu: Add go-github-com-dustin-go-humanize. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 09 Jul 2021 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49494@debbugs.gnu.org Cc: Arun Isaac Received: via spool by 49494-submit@debbugs.gnu.org id=B49494.162584758816524 (code B ref 49494); Fri, 09 Jul 2021 16:20:02 +0000 Received: (at 49494) by debbugs.gnu.org; 9 Jul 2021 16:19:48 +0000 Received: from localhost ([127.0.0.1]:59576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1tEC-0004IR-4b for submit@debbugs.gnu.org; Fri, 09 Jul 2021 12:19:48 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:42052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1tE8-0004Hj-Qz for 49494@debbugs.gnu.org; Fri, 09 Jul 2021 12:19:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=T72sRKdNBj9vaqHXn5fj4BCw/XszRRh8BfG5O66JRNs=; b=QQ+5hi0cQoOM70LZnl3BBXTjOu HomPnH/E9tYi2XiUn4CAd376hXS2OI89jtEJO8witRdoS8eIsGhTwuLA7RvwxXxn7HUJLQI5rjOcs ELArg2R4OzSLQDAFAisHgCYaoYUid2PMQni3oY32xnIX/7QOqD5Jvert+MpBtTmAw5XXvwWye4Cbq sWwIt+e9IK/FTzPQ2BfZoHEwa3bP9cMToEkdHBVBXCXEk0Kev8NOp/b1uoWaDreCgLQuwwaC+i3yv vVBqKoVtrnL8spMlSZuxngVwFRmToh+H/NokO83rT5eyhyOjqc7iWKS0djNbOagpZfIqs8peYbO8e 6QgTx77Q==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m1tE6-000ASF-G3; Fri, 09 Jul 2021 21:49:42 +0530 From: Arun Isaac Date: Fri, 9 Jul 2021 21:49:35 +0530 Message-Id: <20210709161940.12759-2-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210709161940.12759-1-arunisaac@systemreboot.net> References: <20210709161940.12759-1-arunisaac@systemreboot.net> 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/golang.scm (go-github-com-dustin-go-humanize): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cbce7bec41..972989c84f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8249,3 +8249,27 @@ Go.") the External Data Representation (XDR) standard protocol as specified in RFC 4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") (license license:isc))) + +(define-public go-github-com-dustin-go-humanize + (package + (name "go-github-com-dustin-go-humanize") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dustin/go-humanize") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1kqf1kavdyvjk7f8kx62pnm7fbypn9z1vbf8v2qdh3y7z7a0cbl3")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/dustin/go-humanize")) + (home-page "https://github.com/dustin/go-humanize") + (synopsis "Humane unit formatter") + (description "@code{go-humanize} provides formatters for units to human +friendly sizes. It converts boring ugly numbers to human-friendly strings and +back.") + (license license:expat)))