From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efRyb-0003O0-PN for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efRyY-0000Rh-LX for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:37451) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efRyY-0000RP-HF for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1efRyY-0004or-5o for guix-patches@gnu.org; Sat, 27 Jan 2018 10:01:02 -0500 Subject: [bug#30214] [PATCH 01/10] gnu: Add go-golang.org-x-crypto-ssh-terminal. References: <87h8rd4nxg.fsf@cbaines.net> In-Reply-To: <87h8rd4nxg.fsf@cbaines.net> Resent-Message-ID: From: Christopher Baines Date: Sat, 27 Jan 2018 15:00:18 +0000 Message-Id: <20180127150027.27150-1-mail@cbaines.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30214@debbugs.gnu.org * gnu/packages/terminals.scm (go-golang.org-x-crypto-ssh-terminal): New variable. --- gnu/packages/terminals.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm index 68507cf64..3baaf6612 100644 --- a/gnu/packages/terminals.scm +++ b/gnu/packages/terminals.scm @@ -31,6 +31,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system glib-or-gtk) + #:use-module (guix build-system go) #:use-module (guix build-system python) #:use-module (guix download) #:use-module (guix git-download) @@ -572,3 +573,39 @@ eye-candy, customizable, and reasonably lightweight.") It's a terminal emulator with few dependencies, so you don't need a full GNOME desktop installed to have a decent terminal emulator.") (license license:gpl2))) + +(define-public go-golang.org-x-crypto-ssh-terminal + (let ((commit "c78caca803c95773f48a844d3dcab04b9bc4d6dd") + (revision "0")) + (package + (name "go-golang.org-x-crypto-ssh-terminal") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/crypto") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vxlfxr9y681yn2cfh6dbqmq35vvq4f45ay0mm31ffkny9cms0y4")))) + (build-system go-build-system) + (arguments + '(#:import-path "golang.org/x/crypto/ssh/terminal" + #:unpack-path "golang.org/x/crypto" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable + (lambda* (#:key outputs #:allow-other-keys) + (map (lambda (file) + (make-file-writable file)) + (find-files + (string-append (assoc-ref outputs "out") + "/src/golang.org/x/crypto/ed25519/testdata") + ".*\\.gz$")) + #t))))) + (synopsis "Support functions for dealing with terminals in Go") + (description "@code{terminal} provides support functions for dealing +with terminals in Go.") + (home-page "https://go.googlesource.com/crypto/") + (license license:bsd-3)))) -- 2.15.1