me
/
guix
Archived
1
0
Fork 0

gnu: rocminfo: Static references to lsmod and grep.

Fixes usage in a pure environment.

* gnu/packages/rocm.scm (rocminfo) [arguments]: Add #:phases.
Lars-Dominik Braun 2021-08-09 09:07:44 +02:00
parent f476876e5c
commit db7d197b30
No known key found for this signature in database
GPG Key ID: F663943E08D8092A
1 changed files with 13 additions and 2 deletions

View File

@ -319,8 +319,19 @@ and in-process/in-memory compilation.")
(base32
"0pcm308vwkjrwnrk507iya20mkil8j0vx699w9jk2gas4n4jvkcz"))))
(build-system cmake-build-system)
(arguments `(#:tests? #f)) ; No tests.
(inputs `(("rocr-runtime" ,rocr-runtime)))
(arguments
`(#:tests? #f ; No tests.
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-binary-paths
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "rocminfo.cc"
(("lsmod")
(string-append (assoc-ref inputs "kmod") "/bin/lsmod"))
(("grep") (which "grep"))))))))
(inputs
`(("rocr-runtime" ,rocr-runtime)
("kmod" ,kmod)))
(home-page "https://github.com/RadeonOpenCompute/rocminfo")
(synopsis "ROCm Application for Reporting System Info")
(description #f)