From patchwork Mon Mar 16 07:15:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 20710 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 4FBD327BBEA; Mon, 16 Mar 2020 07:22:45 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, 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 ESMTP id 2040327BBE4 for ; Mon, 16 Mar 2020 07:22:45 +0000 (GMT) Received: from localhost ([::1]:35204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDk5E-0007TP-9R for patchwork@mira.cbaines.net; Mon, 16 Mar 2020 03:22:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46163) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDk3c-0007HZ-G9 for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDk3b-000770-43 for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58258) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDk3a-00074P-Pv for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDk3a-0001OA-K5 for guix-patches@gnu.org; Mon, 16 Mar 2020 03:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40086] [PATCH 07/11] gnu: Add go-github-com-pbnjay-memory. References: <20200316070412.12364-1-efraim@flashner.co.il> In-Reply-To: <20200316070412.12364-1-efraim@flashner.co.il> Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 16 Mar 2020 07:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40086 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40086@debbugs.gnu.org Cc: Efraim Flashner Received: via spool by 40086-submit@debbugs.gnu.org id=B40086.15843432365276 (code B ref 40086); Mon, 16 Mar 2020 07:21:02 +0000 Received: (at 40086) by debbugs.gnu.org; 16 Mar 2020 07:20:36 +0000 Received: from localhost ([127.0.0.1]:35997 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDk3A-0001N2-EI for submit@debbugs.gnu.org; Mon, 16 Mar 2020 03:20:36 -0400 Received: from flashner.co.il ([178.62.234.194]:60848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDk38-0001Mq-BB for 40086@debbugs.gnu.org; Mon, 16 Mar 2020 03:20:34 -0400 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 964E840103; Mon, 16 Mar 2020 07:20:28 +0000 (UTC) From: Efraim Flashner Date: Mon, 16 Mar 2020 09:15:55 +0200 Message-Id: <20200316071559.13930-8-efraim@flashner.co.il> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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-pbnjay-memory): New variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 11dfb23e46..30e4b4147f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3551,3 +3551,29 @@ through the life of the application. Currently x86 / x64 (AMD64) is supported, and no external C (cgo) code is used, which should make the library very eas to use.") (license license:expat))) + +(define-public go-github-com-pbnjay-memory + (let ((commit "974d429e7ae40c89e7dcd41cfcc22a0bfbe42510") + (revision "1")) + (package + (name "go-github-com-pbnjay-memory") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pbnjay/memory") + (commit commit))) + (file-name (string-append "go-github-com-pbnjay-memory-" + version "-checkout")) + (sha256 + (base32 + "0kazg5psdn90pqadrzma5chdwh0l2by9z31sspr47gx93fhjmkkq")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/pbnjay/memory")) + (home-page "https://github.com/gedex/inflector") + (synopsis "Go library to report total system memory") + (description "@code{memory} provides a single method reporting total +physical system memory accessible to the kernel. It does not account for memory +used by other processes.") + (license license:bsd-3))))