mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 14:07:01 +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
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'fix-tests
|
||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
(substitute* (find-files "." "test\\.go")
|
||||
(("/bin/sleep" command)
|
||||
(string-append
|
||||
(assoc-ref (or native-inputs inputs) "coreutils")
|
||||
command)))
|
||||
(substitute* "src/github.com/keybase/go-ps/process_openbsd.go"
|
||||
(("^// \\+build ignore") "")))))))
|
||||
(lambda* (#:key import-path #:allow-other-keys)
|
||||
(with-directory-excursion (string-append "src/" import-path)
|
||||
(substitute* (find-files "." "test\\.go")
|
||||
(("/bin/sleep") (which "sleep")))
|
||||
(substitute* "process_openbsd.go"
|
||||
(("^// \\+build ignore") ""))))))))
|
||||
(native-inputs
|
||||
(list coreutils go-github-com-stretchr-testify))
|
||||
(list go-github-com-stretchr-testify))
|
||||
(home-page "https://github.com/keybase/go-ps")
|
||||
(synopsis "Process list library for Go")
|
||||
(description "Go-Ps is a library for Go that implements OS-specific APIs
|
||||
|
|
Loading…
Reference in a new issue