all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Efraim Flashner <efraim@flashner.co.il>
To: guix-devel@gnu.org
Subject: [PATCH 3/3] gnu: Add go-1.5.
Date: Tue, 12 Jan 2016 18:31:38 +0200	[thread overview]
Message-ID: <1452616298-6255-4-git-send-email-efraim@flashner.co.il> (raw)
In-Reply-To: <1452616298-6255-1-git-send-email-efraim@flashner.co.il>

* gnu/packages/golang.scm (go-1.5): New variable.
---
 gnu/packages/golang.scm | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index cb1cbc1..6f281cf 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -91,4 +91,34 @@ garbage collection, various safety features and CSP-style concurrent programming
 features added.")
     (license license:bsd-3)))
 
-(define-public go go-1.4)
+(define-public go-1.5
+  (package (inherit go-1.4)
+    (version "1.5.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "https://storage.googleapis.com/golang/go"
+                            version ".src.tar.gz"))
+        (sha256
+         (base32
+          "0x3sk32ym93hnc0yk6bnra226f92qvixia6kwcf68q84q0jddpgk"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments go-1.4)
+       ((#:phases phases)
+        `(modify-phases ,phases
+         (replace 'build
+          (let* ((bash   (assoc-ref %build-inputs "bash"))
+                 (go14   (assoc-ref %build-inputs "go-1.4"))
+                 (output (assoc-ref %outputs "out")))
+            (setenv "CC" "gcc")
+            (setenv "GOPATH" (string-append (getcwd) "/go"))
+            (setenv "GOROOT_BOOTSTRAP" go14)
+            (setenv "GOROOT_FINAL" output)
+            (lambda _
+              (zero?
+                (system* (string-append bash "/bin/bash") "make.bash")))))))))
+    (native-inputs
+     `(("go-1.4" ,go-1.4)
+       ("perl" ,perl)))))
+
+(define-public go go-1.5)
-- 
2.7.0.rc3

  parent reply	other threads:[~2016-01-12 16:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-12 16:31 [PATCH 0/3] WIP: Go-lang Efraim Flashner
2016-01-12 16:31 ` [PATCH 1/3] gnu: gccgo: Update to 4.9 Efraim Flashner
2016-01-14 15:09   ` Ludovic Courtès
2016-01-12 16:31 ` [PATCH 2/3] gnu: Add go-1.4 Efraim Flashner
2016-01-14 15:12   ` Ludovic Courtès
2016-01-14 21:12     ` Efraim Flashner
2016-01-15 16:14       ` Ludovic Courtès
2016-01-12 16:31 ` Efraim Flashner [this message]
2016-01-12 20:25   ` [PATCH 3/3] gnu: Add go-1.5 Ricardo Wurmus
2016-01-13  9:36     ` Efraim Flashner
2016-01-14 15:13   ` Ludovic Courtès
2016-01-14 15:08 ` [PATCH 0/3] WIP: Go-lang Ludovic Courtès
2016-01-14 19:14   ` Jeff Mickey
2016-01-14 21:40     ` Efraim Flashner
2016-01-14 21:37   ` Leo Famulari
2016-01-14 21:42   ` Efraim Flashner
2016-01-14 19:17 ` Jeff Mickey
2016-01-14 21:37   ` Efraim Flashner
2016-01-14 22:27     ` Jeff Mickey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1452616298-6255-4-git-send-email-efraim@flashner.co.il \
    --to=efraim@flashner.co.il \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.