summary refs log tree commit diff
path: root/gnu/packages/llvm.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-01-08 11:29:37 +0100
committerMarius Bakke <marius@gnu.org>2022-01-08 11:38:47 +0100
commite424264394cbf8cb125edfff3d7ae68487df5839 (patch)
treec6512336bbe64174fa4b2b1743d0a5952de02392 /gnu/packages/llvm.scm
parentc94202ac3867248427872b46d66510eec7745023 (diff)
downloadguix-e424264394cbf8cb125edfff3d7ae68487df5839.tar.gz
gnu: python-clang: Remove input labels.
* gnu/packages/llvm.scm (clang-python-bindings)[arguments]: Use
SEARCH-INPUT-FILE instead of label.
Diffstat (limited to 'gnu/packages/llvm.scm')
-rw-r--r--gnu/packages/llvm.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 9702aca896..4cd3bca75e 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1532,10 +1532,10 @@ setup(name=\"clang\", packages=[\"clang\"])\n")))))
                   (add-before 'build 'set-libclang-file-name
                     (lambda* (#:key inputs #:allow-other-keys)
                       ;; Record the absolute file name of libclang.so.
-                      (let ((clang (assoc-ref inputs "clang")))
+                      (let ((libclang (search-input-file inputs
+                                                         "/lib/libclang.so")))
                         (substitute* "clang/cindex.py"
-                          (("libclang\\.so")
-                           (string-append clang "/lib/libclang.so")))))))))
+                          (("libclang\\.so") libclang))))))))
     (inputs (list clang))
     (synopsis "Python bindings to libclang")))