aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/org/euandre/queue.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/org/euandre/queue.scm b/src/org/euandre/queue.scm
index 9dd6742..88a1aa7 100644
--- a/src/org/euandre/queue.scm
+++ b/src/org/euandre/queue.scm
@@ -23,6 +23,7 @@
#:use-module (gnu packages image)
#:use-module (gnu packages glib)
#:use-module (gnu packages gnome)
+ #:use-module (gnu packages golang)
#:use-module (gnu packages mail)
#:use-module (gnu packages m4)
#:use-module (gnu packages onc-rpc)
@@ -1699,8 +1700,35 @@ connections correctly.")))
"readme=:README.md"
"readme=:README"))))
+(define-public go-full
+ (package
+ (inherit go-1.22)
+ (arguments
+ (substitute-keyword-arguments (package-arguments go-1.22)
+ ((#:tests? _) #f)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-before 'build 'recover-binary-stdlib
+ (lambda _
+ (define (setenvrc env-var value)
+ (setenv env-var value)
+ (format #t
+ "Environment variable `~a' set to `~a'.~%"
+ env-var
+ value))
+ (setenvrc "GODEBUG" "installgoroot=all")))
+ (add-after 'install 'install-binaries
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (dest (string-append out "/lib/go/pkg")))
+ (copy-recursively "pkg" dest))))
+ (delete 'strip)))))))
+
+
+
(list
+ go-full
pax-utils
hunspell-dict-en-utf8
hunspell-dict-pt-utf8