[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/18: gnu: matterbridge: Swap to go-build-system.
From: |
guix-commits |
Subject: |
18/18: gnu: matterbridge: Swap to go-build-system. |
Date: |
Thu, 20 Jun 2024 07:56:00 -0400 (EDT) |
sharlatan pushed a commit to branch wip-go-team
in repository guix.
commit 63c78c19c93b8933551b317e13cfdce90a3c0801
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Thu Jun 20 09:33:28 2024 +0100
gnu: matterbridge: Swap to go-build-system.
* gnu/packages/messaging.scm (matterbridge): Adjust package style.
[build-system]: Swap to go-build-system.
[arguments]: <#:go>: Use go-1.21.
Change-Id: I839f1a0c369a143e8d36d6f919e1751a915c524a
---
gnu/packages/messaging.scm | 36 ++++--------------------------------
1 file changed, 4 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 83463f44c6..82b00803a0 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -3256,39 +3256,11 @@ designed for experienced users.")
(sha256
(base32
"0939fiy7z53izznfhlr7c6vaskbmkbj3ncb09fzx5dmz9cjngy80"))))
- ;; Using the go-build-system results in the same error message
- ;; than in the bug 1551[1]. So we fix it by running go build
- ;; manually in the git repository as-is as this is the solution
- ;; given to that bug by the matterbridge developers.
- ;; [1]https://github.com/42wim/matterbridge/issues/1551
- (build-system gnu-build-system)
+ (build-system go-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (delete 'configure)
- (replace 'build
- (lambda* (#:key outputs #:allow-other-keys)
- (setenv "GOCACHE"
- (string-append (getcwd) "/go-build"))
- (setenv "GOBIN"
- (string-append (assoc-ref outputs "out") "/bin"))
- (invoke "go" "build" "-v" "-x")))
- (replace 'check
- (lambda* (#:key outputs tests? #:allow-other-keys)
- (when tests?
- (setenv "GOCACHE"
- (string-append (getcwd) "/go-build"))
- (setenv "GOBIN"
- (string-append (assoc-ref outputs "out")
- "/bin"))
- (invoke "go" "test" "-v" "-x"))))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (setenv "GOCACHE"
- (string-append (getcwd) "/go-build"))
- (setenv "GOBIN"
- (string-append (assoc-ref outputs "out") "/bin"))
- (invoke "go" "install" "-v" "-x"))))))
- (native-inputs (list go))
+ (list
+ #:go go-1.21
+ #:import-path "github.com/42wim/matterbridge"))
(synopsis "Bridge together various messaging networks and protocols")
(description
"Relays messages between different channels from various
- 16/18: gnu: go-golang-org-x-sys: Fix indentation., (continued)
- 16/18: gnu: go-golang-org-x-sys: Fix indentation., guix-commits, 2024/06/20
- 17/18: gnu: go-golang-org-x-crypto: Update to 0.14.0., guix-commits, 2024/06/20
- 02/18: gnu: go-github-com-golang-protobuf-proto: Update to 1.5.3., guix-commits, 2024/06/20
- 05/18: gnu: docker: Apply "-trimpath" flag., guix-commits, 2024/06/20
- 01/18: gnu: go-google-golang-org-protobuf: Update to 1.31.0., guix-commits, 2024/06/20
- 04/18: gnu: skopeo: Apply "-trimpath" flag., guix-commits, 2024/06/20
- 12/18: gnu: go-golang-org-x-sync: Fix indentation., guix-commits, 2024/06/20
- 13/18: gnu: go-golang-org-x-sync: Improve description., guix-commits, 2024/06/20
- 11/18: gnu: go-golang-org-x-sync: Update to 0.7.0., guix-commits, 2024/06/20
- 15/18: gnu: go-golang-org-x-sys: Update to 0.21.0., guix-commits, 2024/06/20
- 18/18: gnu: matterbridge: Swap to go-build-system.,
guix-commits <=