From 1aa8dfaeec3c6e4e587aadf7440246f7c5c04b9f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 9 Jul 2024 19:05:18 +0300 Subject: [PATCH] gnu: go-github-com-ipfs-go-ipfs-cmdkit-files: Build on more systems. * gnu/packages/ipfs.scm (go-github-com-ipfs-go-ipfs-cmdkit-files) [arguments]: When building on systems which don't support go-1.16 use gccgo-11. Change-Id: I0cf1e3a429603dde3a7dc75f4088c5b5f62ebad4 Signed-off-by: Sharlatan Hellseher --- gnu/packages/ipfs.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm index 568284e3b4..82d8914250 100644 --- a/gnu/packages/ipfs.scm +++ b/gnu/packages/ipfs.scm @@ -29,6 +29,7 @@ (define-module (gnu packages ipfs) #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix build-system go) + #:use-module (gnu packages gcc) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) @@ -147,7 +148,9 @@ (define-public go-github-com-ipfs-go-ipfs-cmdkit-files "0qk6fshgdmhp8dip2ksm13j6nywi41m9mn0czkvmw6b697z85l2r")))) (build-system go-build-system) (arguments - `(#:go ,go-1.16 + `(#:go ,@(if (supported-package? go-1.16) + `(,go-1.16) + `(,gccgo-11)) #:unpack-path "github.com/ipfs/go-ipfs-cmdkit" #:import-path "github.com/ipfs/go-ipfs-cmdkit/files")) (home-page "https://github.com/ipfs/go-ipfs-cmdkit")