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:31:58 +0100
committerMarius Bakke <marius@gnu.org>2022-01-08 11:38:47 +0100
commit6a9d0560abed5a4246698d724147ad15feed478b (patch)
tree036dba158ad9e7544b1b6ce48d6260aabecfc593 /gnu/packages/llvm.scm
parent2db689b669d6d86f3475eecdb8af1d69ae818bd4 (diff)
downloadguix-6a9d0560abed5a4246698d724147ad15feed478b.tar.gz
gnu: emacs-clang-format: Remove input labels.
* gnu/packages/llvm.scm (emacs-clang-format)[arguments]: Use SEARCH-INPUT-FILE
instead of label.
Diffstat (limited to 'gnu/packages/llvm.scm')
-rw-r--r--gnu/packages/llvm.scm5
1 files changed, 2 insertions, 3 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 24a2de73eb..83d926b60b 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1563,12 +1563,11 @@ setup(name=\"clang\", packages=[\"clang\"])\n")))))
        (modify-phases %standard-phases
          (add-after 'unpack 'configure
            (lambda* (#:key inputs #:allow-other-keys)
-             (let ((clang (assoc-ref inputs "clang")))
+             (let ((clang-format (search-input-file inputs "/bin/clang-format")))
                (copy-file "tools/clang-format/clang-format.el" "clang-format.el")
                (emacs-substitute-variables "clang-format.el"
                  ("clang-format-executable"
-                  (string-append clang "/bin/clang-format"))))
-             #t)))))
+                  clang-format))))))))
     (synopsis "Format code using clang-format")
     (description "This package filters code through @code{clang-format}
 to fix its formatting.  @code{clang-format} is a tool that formats