From 35354eed31abebff6977544cee7578d4ba1dcbd1 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 12 Jan 2016 16:23:50 +0200 Subject: [PATCH 2/2] gnu: Add go. * gnu/packages/golang.scm (go): New variable. --- gnu/packages/golang.scm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f02d4a8..d94bd2c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -23,7 +23,8 @@ #:use-module (guix packages) #:use-module (guix build-system gnu) #:use-module (gnu packages gcc) - #:use-module (gnu packages perl)) + #:use-module (gnu packages perl) + #:use-module (srfi srfi-1)) ;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a ;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2 @@ -89,3 +90,18 @@ garbage collection, various safety features and in the style of communicating sequential processes (CSP) concurrent programming features added.") (license license:bsd-3))) + +(define-public go + (package (inherit go-1.4) + (version "1.6") + (source + (origin + (method url-fetch) + (uri (string-append "https://storage.googleapis.com/golang/go" + version ".src.tar.gz")) + (sha256 + (base32 + "0ipivhc34df8h439h5d81m0h1jz0gsy71m67ljrgk6rswj6cwv59")))) + (native-inputs + `(("gccgo" ,go-1.4) + ,@(alist-delete "gccgo" (package-native-inputs go-1.4)))))) -- 2.7.0