aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/rocm.scm
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2021-08-09 09:07:44 +0200
committerLars-Dominik Braun <lars@6xq.net>2021-08-09 09:09:22 +0200
commitdb7d197b30db77cffbbe8877e46f8d8173ab21da (patch)
tree487cb1a585f08088c7d8cd4b58c77a629bcb4c34 /gnu/packages/rocm.scm
parentf476876e5ce0e7141570cfebe13fee9703a49e38 (diff)
downloadguix-db7d197b30db77cffbbe8877e46f8d8173ab21da.tar
guix-db7d197b30db77cffbbe8877e46f8d8173ab21da.tar.gz
gnu: rocminfo: Static references to lsmod and grep.
Fixes usage in a pure environment. * gnu/packages/rocm.scm (rocminfo) [arguments]: Add #:phases.
Diffstat (limited to 'gnu/packages/rocm.scm')
-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)