gnu: nncp: Apply "-trimpath" flag.
* gnu/packages/uucp.scm (nncp) [arguments]: <#:phases>: Remove 'remove-go-references phase. Set BUILDFLAGS=-trimpath to replace 'remove-go-references phase in 'configure phase. Change-Id: I7cfe14174e38708d36329d8e33ed6bb1ce0ae220master
parent
6d520b8c0c
commit
e7349f1f81
|
@ -116,6 +116,7 @@ between computers.")
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(setenv "GO_LDFLAGS" "-trimpath")
|
||||||
;; Set configuration path.
|
;; Set configuration path.
|
||||||
(setenv "CFGPATH" "/etc/nncp.hjson")
|
(setenv "CFGPATH" "/etc/nncp.hjson")
|
||||||
;; Set output directories.
|
;; Set output directories.
|
||||||
|
@ -142,9 +143,7 @@ between computers.")
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(when tests?
|
(when tests?
|
||||||
(invoke "contrib/do" "-c" "test"))))
|
(invoke "contrib/do" "-c" "test")))))))
|
||||||
(add-after 'install 'remove-go-references
|
|
||||||
(assoc-ref go:%standard-phases 'remove-go-references)))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list go-github-com-davecgh-go-xdr
|
(list go-github-com-davecgh-go-xdr
|
||||||
go-github-com-dustin-go-humanize
|
go-github-com-dustin-go-humanize
|
||||||
|
|
Reference in New Issue