mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
gnu: skim: Reformat with 'guix style'.
* gnu/packages/rust-apps.scm (skim): Reformat the code with 'guix style'. Change-Id: I5a98279fdc1f70f1af146460796ba1ae54c70f7f
This commit is contained in:
parent
6045f3baba
commit
4ccd48da57
1 changed files with 68 additions and 74 deletions
|
@ -2167,82 +2167,76 @@ (define-public skim
|
|||
(name "skim")
|
||||
(version "0.9.4")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "skim" version))
|
||||
(file-name
|
||||
(string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"1d5v9vq8frkdjm7bnw3455h6xf3c277d51il2qasn7r20kwik7ab"))))
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "skim" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "1d5v9vq8frkdjm7bnw3455h6xf3c277d51il2qasn7r20kwik7ab"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:cargo-inputs
|
||||
(("rust-atty-0.2" ,rust-atty-0.2)
|
||||
("rust-beef" ,rust-beef-0.5)
|
||||
("rust-bitflags" ,rust-bitflags-1)
|
||||
("rust-chrono" ,rust-chrono-0.4)
|
||||
("rust-clap" ,rust-clap-2)
|
||||
("rust-crossbeam" ,rust-crossbeam-0.8)
|
||||
("rust-defer-drop" ,rust-defer-drop-1)
|
||||
("rust-derive-builder" ,rust-derive-builder-0.9)
|
||||
("rust-env-logger" ,rust-env-logger-0.8)
|
||||
("rust-fuzzy-matcher" ,rust-fuzzy-matcher-0.3)
|
||||
("rust-lazy-static" ,rust-lazy-static-1)
|
||||
("rust-log" ,rust-log-0.4)
|
||||
("rust-nix" ,rust-nix-0.19)
|
||||
("rust-rayon" ,rust-rayon-1)
|
||||
("rust-regex" ,rust-regex-1)
|
||||
("rust-shlex" ,rust-shlex-0.1)
|
||||
("rust-time" ,rust-time-0.2)
|
||||
("rust-timer" ,rust-timer-0.2)
|
||||
("rust-tuikit" ,rust-tuikit-0.4)
|
||||
("rust-unicode-width" ,rust-unicode-width-0.1)
|
||||
("rust-vte" ,rust-vte-0.9))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'install 'install-extras
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/bin"))
|
||||
(share (string-append out "/share"))
|
||||
(man (string-append out "/share/man"))
|
||||
(vimfiles (string-append
|
||||
share "/vim/vimfiles/pack/guix/start/skim/plugin"))
|
||||
(bash-completion
|
||||
(string-append share "/bash-completions/completions"))
|
||||
(zsh-site (string-append share "/zsh/site-functions"))
|
||||
(fish-vendor
|
||||
(string-append share "/fish/vendor-completions.d")))
|
||||
;; Binaries
|
||||
(for-each
|
||||
(lambda (binary) (install-file binary bin))
|
||||
(find-files "bin"))
|
||||
(mkdir-p share)
|
||||
;; Manpages
|
||||
(copy-recursively "man" man)
|
||||
;; Vim plugins
|
||||
(mkdir-p vimfiles)
|
||||
(copy-recursively "plugin" vimfiles)
|
||||
;; Completions
|
||||
(mkdir-p bash-completion)
|
||||
(copy-file
|
||||
"shell/completion.bash"
|
||||
(string-append bash-completion "/skim"))
|
||||
(copy-file
|
||||
"shell/key-bindings.bash"
|
||||
(string-append bash-completion "/skim-bindings"))
|
||||
(mkdir-p zsh-site)
|
||||
(copy-file
|
||||
"shell/completion.zsh"
|
||||
(string-append zsh-site "/_skim"))
|
||||
(copy-file
|
||||
"shell/key-bindings.zsh"
|
||||
(string-append zsh-site "/_skim-bindings"))
|
||||
(mkdir-p fish-vendor)
|
||||
(copy-file
|
||||
"shell/key-bindings.fish"
|
||||
(string-append fish-vendor "/skim-bindings.fish"))))))))
|
||||
`(#:cargo-inputs (("rust-atty-0.2" ,rust-atty-0.2)
|
||||
("rust-beef" ,rust-beef-0.5)
|
||||
("rust-bitflags" ,rust-bitflags-1)
|
||||
("rust-chrono" ,rust-chrono-0.4)
|
||||
("rust-clap" ,rust-clap-2)
|
||||
("rust-crossbeam" ,rust-crossbeam-0.8)
|
||||
("rust-defer-drop" ,rust-defer-drop-1)
|
||||
("rust-derive-builder" ,rust-derive-builder-0.9)
|
||||
("rust-env-logger" ,rust-env-logger-0.8)
|
||||
("rust-fuzzy-matcher" ,rust-fuzzy-matcher-0.3)
|
||||
("rust-lazy-static" ,rust-lazy-static-1)
|
||||
("rust-log" ,rust-log-0.4)
|
||||
("rust-nix" ,rust-nix-0.19)
|
||||
("rust-rayon" ,rust-rayon-1)
|
||||
("rust-regex" ,rust-regex-1)
|
||||
("rust-shlex" ,rust-shlex-0.1)
|
||||
("rust-time" ,rust-time-0.2)
|
||||
("rust-timer" ,rust-timer-0.2)
|
||||
("rust-tuikit" ,rust-tuikit-0.4)
|
||||
("rust-unicode-width" ,rust-unicode-width-0.1)
|
||||
("rust-vte" ,rust-vte-0.9))
|
||||
#:phases (modify-phases %standard-phases
|
||||
(add-after 'install 'install-extras
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/bin"))
|
||||
(share (string-append out "/share"))
|
||||
(man (string-append out "/share/man"))
|
||||
(vimfiles (string-append share
|
||||
"/vim/vimfiles/pack/guix/start/skim/plugin"))
|
||||
(bash-completion (string-append share
|
||||
"/bash-completions/completions"))
|
||||
(zsh-site (string-append share
|
||||
"/zsh/site-functions"))
|
||||
(fish-vendor (string-append share
|
||||
"/fish/vendor-completions.d")))
|
||||
;; Binaries
|
||||
(for-each (lambda (binary)
|
||||
(install-file binary bin))
|
||||
(find-files "bin"))
|
||||
(mkdir-p share)
|
||||
;; Manpages
|
||||
(copy-recursively "man" man)
|
||||
;; Vim plugins
|
||||
(mkdir-p vimfiles)
|
||||
(copy-recursively "plugin" vimfiles)
|
||||
;; Completions
|
||||
(mkdir-p bash-completion)
|
||||
(copy-file "shell/completion.bash"
|
||||
(string-append bash-completion "/skim"))
|
||||
(copy-file "shell/key-bindings.bash"
|
||||
(string-append bash-completion
|
||||
"/skim-bindings"))
|
||||
(mkdir-p zsh-site)
|
||||
(copy-file "shell/completion.zsh"
|
||||
(string-append zsh-site "/_skim"))
|
||||
(copy-file "shell/key-bindings.zsh"
|
||||
(string-append zsh-site "/_skim-bindings"))
|
||||
(mkdir-p fish-vendor)
|
||||
(copy-file "shell/key-bindings.fish"
|
||||
(string-append fish-vendor
|
||||
"/skim-bindings.fish"))))))))
|
||||
(home-page "https://github.com/lotabout/skim")
|
||||
(synopsis "Fuzzy Finder in Rust")
|
||||
(description "This package provides a fuzzy finder in Rust.")
|
||||
|
|
Loading…
Reference in a new issue