mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: clang-from-llvm: Clean up share/clang folder.
* gnu/packages/llvm.scm (clang-from-llvm): Remove useless files, install completion.
This commit is contained in:
parent
51002b723d
commit
1c7372a5aa
1 changed files with 20 additions and 1 deletions
|
@ -235,7 +235,26 @@ (define* (clang-from-llvm llvm clang-runtime hash
|
|||
(substitute* "lib/Driver/ToolChains.cpp"
|
||||
(("@GLIBC_LIBDIR@")
|
||||
(string-append libc "/lib")))))
|
||||
#t))))))
|
||||
#t)))
|
||||
(add-after 'install 'install-clean-up-/share/clang
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(compl-dir (string-append
|
||||
out "/etc/bash_completion.d")))
|
||||
(with-directory-excursion (string-append out
|
||||
"/share/clang")
|
||||
;; Delete extensions for proprietary text editors.
|
||||
(delete-file "clang-format-bbedit.applescript")
|
||||
(delete-file "clang-format-sublime.py")
|
||||
;; Delete Emacs extensions: see their respective Emacs
|
||||
;; Guix package instead.
|
||||
(delete-file "clang-rename.el")
|
||||
(delete-file "clang-format.el")
|
||||
;; Install bash completion.
|
||||
(mkdir-p compl-dir)
|
||||
(rename-file "bash-autocomplete.sh"
|
||||
(string-append compl-dir "/clang"))))
|
||||
#t)))))
|
||||
|
||||
;; Clang supports the same environment variables as GCC.
|
||||
(native-search-paths
|
||||
|
|
Loading…
Reference in a new issue