summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/rocm.scm15
1 files changed, 13 insertions, 2 deletions
diff --git a/gnu/packages/rocm.scm b/gnu/packages/rocm.scm
index d6bd584146..63306cd671 100644
--- a/gnu/packages/rocm.scm
+++ b/gnu/packages/rocm.scm
@@ -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)