mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: go-github-com-mattn-go-shellwords: Fix sh path.
* gnu/packages/golang.scm (go-github-com-mattn-go-shellwords) [arguments] <#:phases> {patch-sh-path}: New phase. Co-authored-by: Sharlatan Hellseher <sharlatanus@mgail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com> Change-Id: I9e8051a502471ff1ade2517c9d839af765de3a25
This commit is contained in:
parent
8c9bc0e710
commit
839039c0b5
1 changed files with 7 additions and 17 deletions
|
@ -6073,24 +6073,14 @@ exploration and data entry.")
|
||||||
(build-system go-build-system)
|
(build-system go-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:import-path "github.com/mattn/go-shellwords"
|
`(#:import-path "github.com/mattn/go-shellwords"
|
||||||
;; TODO: can't make homeless-shelter:
|
|
||||||
;; go: disabling cache (/homeless-shelter/.cache/go-build) due to
|
|
||||||
;; initialization failure: mkdir /homeless-shelter: permission denied
|
|
||||||
|
|
||||||
;; This doesn't seem to work:
|
|
||||||
|
|
||||||
;; #:phases
|
|
||||||
;; (modify-phases %standard-phases
|
|
||||||
;; (replace 'check
|
|
||||||
;; (lambda* (#:key import-path #:allow-other-keys)
|
|
||||||
;; (setenv "HOME" "/tmp")
|
|
||||||
;; (invoke "go" "test" import-path))))
|
|
||||||
|
|
||||||
;; TODO: There are also a couple of tests that have stymied Debian in
|
|
||||||
;; the past. They seem to work when run locally.
|
|
||||||
|
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
))
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-sh-path
|
||||||
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
|
(substitute* (string-append
|
||||||
|
"src/" import-path "/util_posix.go")
|
||||||
|
(("/bin/sh") (which "sh"))))))))
|
||||||
(home-page "https://github.com/mattn/go-shellwords")
|
(home-page "https://github.com/mattn/go-shellwords")
|
||||||
(synopsis "Parse lines into shell words")
|
(synopsis "Parse lines into shell words")
|
||||||
(description "This package parses text into shell arguments. Based on
|
(description "This package parses text into shell arguments. Based on
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue