diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2026-05-17 15:10:43 +0300 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2026-05-17 16:38:54 +0300 |
| commit | ab197930dfd4587e6cce0c930ae77327de5fce42 (patch) | |
| tree | 85e33c825b4f12fe05b580174741bf727abcf2a8 /gnu/packages/rust-apps.scm | |
| parent | 60d30f105093572324b48737cde9628cd62fe0ca (diff) | |
gnu: git-delta: Simplify installing extras.
* gnu/packages/rust-apps.scm (git-delta)[arguments]: Rewrite the
'install-extras phase using the cargo-build-system's 'install phase.
Change-Id: Iefd6615d89389ce7f222d4655050f49e3c9d8e7e
Diffstat (limited to 'gnu/packages/rust-apps.scm')
| -rw-r--r-- | gnu/packages/rust-apps.scm | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index 9d70e672c00..9dabaed2cfa 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm | |||
| @@ -4816,27 +4816,24 @@ It will then write @code{fixup!} commits for each of those changes.") | |||
| 4816 | (arguments | 4816 | (arguments |
| 4817 | (list | 4817 | (list |
| 4818 | #:install-source? #f | 4818 | #:install-source? #f |
| 4819 | #:imported-modules (append %copy-build-system-modules | ||
| 4820 | %cargo-build-system-modules) | ||
| 4821 | #:modules '((guix build cargo-build-system) | ||
| 4822 | ((guix build copy-build-system) #:prefix copy:) | ||
| 4823 | (guix build utils)) | ||
| 4819 | #:phases | 4824 | #:phases |
| 4820 | #~(modify-phases %standard-phases | 4825 | #~(modify-phases %standard-phases |
| 4821 | (add-after 'install 'install-extras | 4826 | (add-after 'install 'install-extras |
| 4822 | (lambda* (#:key outputs #:allow-other-keys) | 4827 | (lambda args |
| 4823 | (let* ((out (assoc-ref outputs "out")) | 4828 | (apply (assoc-ref copy:%standard-phases 'install) |
| 4824 | (share (string-append out "/share")) | 4829 | #:install-plan |
| 4825 | (bash-completions-dir | 4830 | '(("etc/completion/completion.bash" |
| 4826 | (string-append out "/share/bash-completion/completions")) | 4831 | "share/bash-completion/completions/delta") |
| 4827 | (zsh-completions-dir | 4832 | ("etc/completion/completion.fish" |
| 4828 | (string-append share "/zsh/site-functions")) | 4833 | "share/fish/vendor_completions.d/delta.fish") |
| 4829 | (fish-completions-dir | 4834 | ("etc/completion/completion.zsh" |
| 4830 | (string-append share "/fish/vendor_completions.d"))) | 4835 | "share/zsh/site-functions/_delta")) |
| 4831 | (mkdir-p bash-completions-dir) | 4836 | args)))))) |
| 4832 | (mkdir-p zsh-completions-dir) | ||
| 4833 | (mkdir-p fish-completions-dir) | ||
| 4834 | (copy-file "etc/completion/completion.bash" | ||
| 4835 | (string-append bash-completions-dir "/delta")) | ||
| 4836 | (copy-file "etc/completion/completion.zsh" | ||
| 4837 | (string-append zsh-completions-dir "/_delta")) | ||
| 4838 | (copy-file "etc/completion/completion.fish" | ||
| 4839 | (string-append fish-completions-dir "/delta.fish")))))))) | ||
| 4840 | (native-inputs (list git-minimal pkg-config)) | 4837 | (native-inputs (list git-minimal pkg-config)) |
| 4841 | (inputs | 4838 | (inputs |
| 4842 | (cons* libgit2-1.9 | 4839 | (cons* libgit2-1.9 |
