mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: go-github-com-keybase-go-ps: Simplify.
* gnu/packages/golang.scm (go-github-com-keybase-go-ps) [phases] {fix-tests}: Remove dependencies on coreutils. [native-inputs]: Remove coreutils. Change-Id: Icee6fe263db1b546ef8a0d6376998f63922c30d1
This commit is contained in:
parent
95553162d3
commit
c7ff4dd60a
1 changed files with 7 additions and 9 deletions
|
@ -2163,16 +2163,14 @@ (define-public go-github-com-keybase-go-ps
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-tests
|
(add-after 'unpack 'fix-tests
|
||||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
(lambda* (#:key import-path #:allow-other-keys)
|
||||||
(substitute* (find-files "." "test\\.go")
|
(with-directory-excursion (string-append "src/" import-path)
|
||||||
(("/bin/sleep" command)
|
(substitute* (find-files "." "test\\.go")
|
||||||
(string-append
|
(("/bin/sleep") (which "sleep")))
|
||||||
(assoc-ref (or native-inputs inputs) "coreutils")
|
(substitute* "process_openbsd.go"
|
||||||
command)))
|
(("^// \\+build ignore") ""))))))))
|
||||||
(substitute* "src/github.com/keybase/go-ps/process_openbsd.go"
|
|
||||||
(("^// \\+build ignore") "")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list coreutils go-github-com-stretchr-testify))
|
(list go-github-com-stretchr-testify))
|
||||||
(home-page "https://github.com/keybase/go-ps")
|
(home-page "https://github.com/keybase/go-ps")
|
||||||
(synopsis "Process list library for Go")
|
(synopsis "Process list library for Go")
|
||||||
(description "Go-Ps is a library for Go that implements OS-specific APIs
|
(description "Go-Ps is a library for Go that implements OS-specific APIs
|
||||||
|
|
Loading…
Reference in a new issue