From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MCKZD+egfWAflwAAgWs5BA (envelope-from ) for ; Mon, 19 Apr 2021 17:25:27 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QHFjCeegfWDXZgAAB5/wlQ (envelope-from ) for ; Mon, 19 Apr 2021 15:25:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF637A0BE for ; Mon, 19 Apr 2021 17:25:26 +0200 (CEST) Received: from localhost ([::1]:53986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVm9-0007uS-UE for larch@yhetil.org; Mon, 19 Apr 2021 11:25:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYVln-0007Pl-SH for guix-patches@gnu.org; Mon, 19 Apr 2021 11:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYVln-0005S9-5r for guix-patches@gnu.org; Mon, 19 Apr 2021 11:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYVln-00016d-2b for guix-patches@gnu.org; Mon, 19 Apr 2021 11:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47539] [PATCH v3 25/25] gnu: Add github-cli. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Apr 2021 15:25:03 +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.16188458674172 (code B ref 47539); Mon, 19 Apr 2021 15:25:03 +0000 Received: (at 47539) by debbugs.gnu.org; 19 Apr 2021 15:24:27 +0000 Received: from localhost ([127.0.0.1]:51732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVlD-000152-1o for submit@debbugs.gnu.org; Mon, 19 Apr 2021 11:24:27 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:57564 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVl7-00014N-A9 for 47539@debbugs.gnu.org; Mon, 19 Apr 2021 11:24:21 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1618845855; bh=qqWvH57++rd6t+qF4XFoS7nYI434tb5RV+2gcPnGsMo=; h=From:To:Subject:In-Reply-To:References:Date; b=riuwyyp2RPezN3Urf7FnsZ+1Zo3uRbfBRxf9hCy/CGr2DeVTOyBAV5Oue+Kbj1dRI 6Zi29seO0Qt4dJ4pylFhh2yvwBCf8c9k0sImBvG6Pgbz78IxDFFLYkcARikMGoPoRS 9s2hj8MnYQOZPcn9tnr0aqS3oZkhYbjXIfSZqV/c= In-Reply-To: References: Message-Id: Date: Mon, 19 Apr 2021 17:24:14 +0200 MIME-Version: 1.0 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618845926; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=aFmf+MsIRio3EtsPHcS97w9fKLOy0NExMrlsk76Hptk=; b=gjosMvMJCcyfurrXKsY0k8Da4wCGYNKNIYa5zuHVXdpJC0NAS9EBcm1+BTUg/Yrw2X7K+g vdSwDtZl4a0GN5vNmQwpv6NrjJ4/ukcqi+2Y/Y+CYTVoFcLO9E0/8JrcJrPmtTWqvF0Ojw s9IqFfj7AhisJZf4FRCs3UxQVEsap3hT7hi05521HXI4fIutDizz6NrTD2R6PI3hpXGy4y fIZK3tkZcGlNYZJmr7iiTwoVpF/12EACqNA4HPl7Dz7Nx5+CnW/+ix+jQQizlcQQPaU6JZ oeptJOngtQJX92IHnTD4YDoIuq1KNsYfOMxfrgLXFOmTRKSYD/OzjvS4mj1PLQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618845926; a=rsa-sha256; cv=none; b=t9S7lYEjKx5zOfq8Ar6jrHj+2VnuVhaMjaGEgaBtwmbptB49XzkrNdOohfunNTKBnbzIN2 GQMux9EcwyCNX+u90UH965hlOtzwStvd4jbuxkPfHsMVaRRjhBQtup/PSvjoFIKB3pLA+K M9anGLTUjRrSmXWxIrhKQqLoLR0ri96QrNiy3GSKtHTb8o+YdSNHSEWUkM358TNiLiA2+g iFbvIjA2JMyBXmRpE8K8TpmkrlCweJgENOCsu4ow0xrenVKZFh1sP1GqA3WrWNaThdPijG lwSLoFM+YC8W5fw8Xwk8HjE3sx/RsnoxjmpKJwns9yh1VuhO79X4Q1V1bMx7Pg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=riuwyyp2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -0.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=riuwyyp2; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: CF637A0BE X-Spam-Score: -0.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6tF9nVAQDDg8 * gnu/packages/version-control.scm (github-cli): New variable. --- gnu/packages/version-control.scm | 145 +++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index ebddd9522a..da6f71ccfe 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,150 @@ commit message side by side If several repos are related, it helps to see their status together.") (license license:expat)))) +(define-public github-cli + (package + (name "github-cli") + (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" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-safeexec + (lambda* (#:key outputs #:allow-other-keys) + (with-directory-excursion "src/github.com/cli/cli/" + ;; 'github.com/cli/safeexec' is only used for Windows, we + ;; replace it with the regular 'os/exec'. See + ;; for discussion. + (substitute* '("pkg/cmd/alias/expand/expand.go" + "script/build.go") + (("github.com/cli/safeexec") "os/exec") + (("safeexec") "exec")) + ;; These files have already imported 'os/exec', meaning that + ;; 'os/exec' would get imported twice, causing an error. + ;; Instead, we just remove the 'github.com/cli/safeexec'. + (substitute* '("cmd/gh/main.go" + "git/git.go" + "pkg/iostreams/iostreams.go" + "pkg/cmd/auth/shared/ssh_keys.go" + "pkg/cmd/pr/checkout/checkout.go" + "pkg/cmdutil/web_browser.go" + "pkg/surveyext/editor_manual.go") + (("\"github.com/cli/safeexec\"") "") + (("safeexec") "exec")))))))) + (native-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-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) + ("go-github-com-alecthomas-chroma" + ,go-github-com-alecthomas-chroma) + ("go-github-com-google-goterm" + ,go-github-com-google-goterm) + ("go-github-com-aymerick-douceur" + ,go-github-com-aymerick-douceur) + ("go-github-com-danwakefield-fnmatch" + ,go-github-com-danwakefield-fnmatch) + ("go-github-com-chris-ramon-douceur" + ,go-github-com-chris-ramon-douceur) + ("go-github-com-gorilla-css" + ,go-github-com-gorilla-css) + ("go-golang-org-colorful" + ,go-golang-org-colorful) + ("go-golang-org-x-net" + ,go-golang-org-x-net) + ("go-github-com-muesli-reflow-ansi" + ,go-github-com-muesli-reflow-ansi) + ("go-github-com-microcosm-cc-bluemonday" + ,go-github-com-microcosm-cc-bluemonday) + ("go-github-com-muesli-reflow-wordwrap" + ,go-github-com-muesli-reflow-wordwrap) + ("go-github-com-yuin-goldmark" + ,go-github-com-yuin-goldmark) + ("go-github-com-dlclark-regexp2" + ,go-github-com-dlclark-regexp2) + ("go-github-com-muesli-reflow-indent" + ,go-github-com-muesli-reflow-indent) + ("go-github-com-muesli-reflow-padding" + ,go-github-com-muesli-reflow-padding) + ("go-github-com-olekukonko-tablewriter" + ,go-github-com-olekukonko-tablewriter))) + (home-page "https://github.com/cli/cli") + (synopsis "CLI interface to GitHub") + (description "This package provides the @command{gh} command, an interface +to 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") -- 2.31.1