From patchwork Thu Apr 1 08:02:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 28259 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 9D55527BC66; Thu, 1 Apr 2021 09:05:31 +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 6D21627BC65 for ; Thu, 1 Apr 2021 09:05:30 +0100 (BST) Received: from localhost ([::1]:44550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRsKX-0006g2-J4 for patchwork@mira.cbaines.net; Thu, 01 Apr 2021 04:05:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRsIN-0004Bx-0e for guix-patches@gnu.org; Thu, 01 Apr 2021 04:03:16 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRsIL-0000wm-4t for guix-patches@gnu.org; Thu, 01 Apr 2021 04:03:14 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRsIK-0007sA-2G for guix-patches@gnu.org; Thu, 01 Apr 2021 04:03:12 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47539] [PATCH 28/28] gnu: Add gh. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 01 Apr 2021 08:03:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47539 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47539@debbugs.gnu.org Received: via spool by 47539-submit@debbugs.gnu.org id=B47539.161726416230039 (code B ref 47539); Thu, 01 Apr 2021 08:03:12 +0000 Received: (at 47539) by debbugs.gnu.org; 1 Apr 2021 08:02:42 +0000 Received: from localhost ([127.0.0.1]:56167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRsHq-0007oK-BD for submit@debbugs.gnu.org; Thu, 01 Apr 2021 04:02:42 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:54352 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRsHm-0007lx-Mt for 47539@debbugs.gnu.org; Thu, 01 Apr 2021 04:02:39 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1617264158; bh=FLNEwJNbM6cKNjm7o+hu1ZrfQNaF0BsPLHDgB5yEzpI=; h=From:To:Subject:In-Reply-To:References:Date; b=t9faH0EtgV9oRbPZZGbzzsA6xCI/QdSujXyv8om2nAncI/Q2Y8YteXHnT6oa6ethN DpG3U6Uw9rvv0o5hrS5TjakLcptCy0LKT2hlO7g0yvMCxrlsArIgiLv+PlngaNK5Tj jLOF/62rF0ZQ9n528PcDlOp+FA1tQmjzGSCYuHjA= In-Reply-To: References: Message-Id: <778a56cd9ac0c4b1efeb7d27c35bf40663ee28fd.1617262223.git.public@yoctocell.xyz> Date: Thu, 01 Apr 2021 10:02:38 +0200 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/version-control.scm (gh): New variable. --- gnu/packages/version-control.scm | 92 ++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index e7fa6e6777..1d3f8d1b7c 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -118,6 +118,7 @@ #:use-module (gnu packages sdl) #:use-module (gnu packages swig) #:use-module (gnu packages sync) + #:use-module ((gnu packages syncthing) #:select (go-github-com-kballard-go-shellquote)) #:use-module (gnu packages tcl) #:use-module (gnu packages textutils) #:use-module (gnu packages time) @@ -3021,6 +3022,97 @@ commit message side by side If several repos are related, it helps to see their status together.") (license license:expat)))) +(define-public gh + (package + (name "gh") + (version "1.8.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/cli/cli.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "009jh1i1ji7d773ismifdw4qvwlb8s1zn14d0n84j9h3n0hyynbc")))) + (build-system go-build-system) + (arguments + '(#:import-path + "github.com/cli/cli/cmd/gh" + #:unpack-path + "github.com/cli/cli")) + (native-inputs + `(("go" ,go))) + (inputs + `(("go-github-com-cli-shurcool-graphql" + ,go-github-com-cli-shurcool-graphql) + ("go-gopkg-in-yaml-v3" ,go-gopkg-in-yaml-v3) + ("go-golang-org-x-text" ,go-golang-org-x-text) + ("go-golang-org-x-sync" ,go-golang-org-x-sync) + ("go-golang-org-x-crypto" + ,go-golang-org-x-crypto) + ("go-github-com-stretchr-testify" + ,go-github-com-stretchr-testify) + ("go-github-com-spf13-pflag" + ,go-github-com-spf13-pflag) + ("go-github-com-spf13-cobra" + ,go-github-com-spf13-cobra) + ("go-github-com-shurcool-githubv4" + ,go-github-com-shurcool-githubv4) + ("go-github-com-rivo-uniseg" + ,go-github-com-rivo-uniseg) + ("go-github-com-muesli-termenv" + ,go-github-com-muesli-termenv) + ("go-github-com-mitchellh-go-homedir" + ,go-github-com-mitchellh-go-homedir) + ("go-github-com-mgutz-ansi" + ,go-github-com-mgutz-ansi) + ("go-github-com-mattn-go-runewidth" + ,go-github-com-mattn-go-runewidth) + ("go-github-com-mattn-go-isatty" + ,go-github-com-mattn-go-isatty) + ("go-github-com-mattn-go-colorable" + ,go-github-com-mattn-go-colorable) + ("go-github-com-kballard-go-shellquote" + ,go-github-com-kballard-go-shellquote) + ("go-github-com-itchyny-gojq" + ,go-github-com-itchyny-gojq) + ("go-github-com-henvic-httpretty" + ,go-github-com-henvic-httpretty) + ("go-github-com-hashicorp-go-version" + ,go-github-com-hashicorp-go-version) + ("go-github-com-google-shlex" + ,go-github-com-google-shlex) + ("go-github-com-google-go-cmp-cmp" + ,go-github-com-google-go-cmp-cmp) + ("go-github-com-gabriel-vasile-mimetype" + ,go-github-com-gabriel-vasile-mimetype) + ("go-github-com-enescakir-emoji" + ,go-github-com-enescakir-emoji) + ("go-github-com-cpuguy83-go-md2man-v2" + ,go-github-com-cpuguy83-go-md2man-v2) + ("go-github-com-cli-safeexec" + ,go-github-com-cli-safeexec) + ("go-github-com-cli-oauth" + ,go-github-com-cli-oauth) + ("go-github-com-cli-browser" + ,go-github-com-cli-browser) + ("go-github-com-briandowns-spinner" + ,go-github-com-briandowns-spinner) + ("go-github-com-makenowjust-heredoc" + ,go-github-com-makenowjust-heredoc) + ("go-github-com-alecaivazis-survey-v2" + ,go-github-com-alecaivazis-survey-v2) + ("go-github-com-charmbracelet-glamour" + ,go-github-com-charmbracelet-glamour))) + (home-page "https://github.com/cli/cli") + (synopsis "GitHub CLI tool") + (description "@command{gh} is GitHub on the command line. It brings pull +requests, issues, and other GitHub concepts to the terminal next to where you +are already working with Git and your code.") + (license license:expat))) + (define-public ghq (package (name "ghq")