gnu: go: Update to 1.8.1.

* gnu/packages/golang.scm (go-1.7): Replace with ...
(go-1.8): New variable.
[arguments]: Update substitutions in 'prebuild' phase.
(go): Update to go-1.8.
This commit is contained in:
Petter 2017-04-17 15:14:18 +02:00 committed by Leo Famulari
parent 13223c8e59
commit c04ef86e81
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -3,8 +3,9 @@
;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com> ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
;;; Copyright © 2016 Andy Wingo <wingo@igalia.com> ;;; Copyright © 2016 Andy Wingo <wingo@igalia.com>
;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Petter <petter@mykolab.ch> ;;; Copyright © 2016, 2017 Petter <petter@mykolab.ch>
;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name> ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017 Sergei Trofimovich <slyfox@inbox.ru>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -197,11 +198,11 @@ (define-public go-1.4
sequential processes (CSP) concurrent programming features added.") sequential processes (CSP) concurrent programming features added.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public go-1.7 (define-public go-1.8
(package (package
(inherit go-1.4) (inherit go-1.4)
(name "go") (name "go")
(version "1.7.5") (version "1.8.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -209,7 +210,7 @@ (define-public go-1.7
name version ".src.tar.gz")) name version ".src.tar.gz"))
(sha256 (sha256
(base32 (base32
"058q57zmi23rflingzhy1b87yl69mb62ql2psfxqr7q7l89lb0sf")))) "0mqf8ydxdx1pwmrs8p8wl5y1qrplzxmxzgb6vkghy4l67z0g9nik"))))
(arguments (arguments
(substitute-keyword-arguments (package-arguments go-1.4) (substitute-keyword-arguments (package-arguments go-1.4)
((#:phases phases) ((#:phases phases)
@ -300,8 +301,8 @@ (define-public go-1.7
(("/etc/services") (string-append net-base "/etc/services"))) (("/etc/services") (string-append net-base "/etc/services")))
(substitute* "time/zoneinfo_unix.go" (substitute* "time/zoneinfo_unix.go"
(("/usr/share/zoneinfo/") tzdata-path)) (("/usr/share/zoneinfo/") tzdata-path))
(substitute* (find-files "cmd" "asm.c") (substitute* (find-files "cmd" "\\.go")
(("/lib/ld-linux.*\\.so\\.[0-9]") loader)) (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader))
#t))) #t)))
(add-before 'build 'set-bootstrap-variables (add-before 'build 'set-bootstrap-variables
(lambda* (#:key outputs inputs #:allow-other-keys) (lambda* (#:key outputs inputs #:allow-other-keys)
@ -364,4 +365,4 @@ (define-public go-1.7
`(("go" ,go-1.4) `(("go" ,go-1.4)
,@(package-native-inputs go-1.4))))) ,@(package-native-inputs go-1.4)))))
(define-public go go-1.7) (define-public go go-1.8)