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:
Sharlatan Hellseher 2024-12-24 16:51:42 +00:00
parent 95553162d3
commit c7ff4dd60a
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -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