From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ee561-0002GG-GC for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ee55y-00018r-LY for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:60337) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ee55y-00018U-Hd for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ee55y-0007rC-CD for guix-patches@gnu.org; Tue, 23 Jan 2018 15:23: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: Tue, 23 Jan 2018 20:21:53 +0000 Message-Id: <20180123202202.32140-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.16.0