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 #: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