sharlatan pushed a commit to branch go-team
in repository guix.
commit 07d97c9b85062c3696d439a6452d4947a00d53ba
Author: André Batista <[email protected]>
AuthorDate: Thu May 1 11:54:03 2025 -0300
gnu: lyrebird: Add version info.
See the project's Makefile. Without this flag, version info defaults
to 'devel'.
* gnu/packages/golang-web.scm (lyrebird)[arguments]<#:build-flags>: Add
ldflag required for building with version information; append default
ldflags in case they are shadowed.
Change-Id: Iaa94c205244b3028b7e935b5ff83cf16b67f1b95
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/golang-web.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 892bd25fd6..20ba7e663b 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -10756,6 +10756,9 @@ protocol.")
(arguments
(list
#:go go-1.22
+ #:build-flags #~(list (string-append "-ldflags="
+ "-X main.lyrebirdVersion="
+ #$version " -s -w"))
#:install-source? #f
#:unpack-path
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird"
#:import-path
"gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/cmd/lyrebird"))