2019-12-15 19:27:39 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2020-01-15 18:02:38 +00:00
|
|
|
;;; Copyright © 2019, 2020 John Soo <jsoo1@asu.edu>
|
2020-01-15 07:36:42 +00:00
|
|
|
;;; Copyright © 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
|
2020-02-07 21:23:22 +00:00
|
|
|
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
|
2020-03-07 17:32:27 +00:00
|
|
|
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
|
2020-04-02 18:10:40 +00:00
|
|
|
;;; Copyright © 2020 Leo Famulari <leo@famulari.name>
|
2019-12-15 19:27:39 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages rust-apps)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix build-system cargo)
|
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module (guix packages)
|
2020-01-21 10:52:11 +00:00
|
|
|
#:use-module (gnu packages compression)
|
|
|
|
#:use-module (gnu packages crates-io)
|
2020-02-09 21:51:09 +00:00
|
|
|
#:use-module (gnu packages documentation)
|
2020-01-21 17:33:33 +00:00
|
|
|
#:use-module (gnu packages jemalloc)
|
2020-02-09 21:51:10 +00:00
|
|
|
#:use-module (gnu packages pcre)
|
2020-01-21 10:52:11 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
#:use-module (gnu packages version-control))
|
2019-12-15 19:27:39 +00:00
|
|
|
|
2020-02-01 04:51:17 +00:00
|
|
|
(define-public exa
|
|
|
|
(package
|
|
|
|
(name "exa")
|
|
|
|
(version "0.9.0")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "exa" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1s902xgplz1167k0r7x235p914lprpsqy2if0kpa1mlb0fswqqq4"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs
|
|
|
|
(("rust-ansi-term" ,rust-ansi-term-0.12)
|
|
|
|
("rust-datetime" ,rust-datetime-0.4)
|
|
|
|
("rust-env-logger" ,rust-env-logger-0.6)
|
|
|
|
("rust-git2" ,rust-git2-0.9)
|
|
|
|
("rust-glob" ,rust-glob-0.3)
|
gnu: rust-lazy-static-1: Set as reference to rust-lazy-static-1.4.
* gnu/packages/crates-io.scm (rust-lazy-static-1): New variable.
(rust-arc-swap-0.3, rust-bindgen-0.50, rust-bstr-0.2,
rust-c2-chacha-0.2, rust-clap-2, rust-clicolors-control-1.0,
rust-console-0.7, rust-criterion-0.2, rust-crossbeam-epoch-0.8,
rust-crossbeam-epoch-0.7, rust-crossbeam-utils-0.7,
rust-crossbeam-utils-0.6, rust-docopt-1.1, rust-encode-unicode-0.3,
rust-findshlibs-0.5, rust-flame-0.2, rust-getrandom-0.1,
rust-grep-cli-0.1, rust-hashbrown-0.5, rust-ignore-0.4,
rust-indexmap-1.0, rust-insta-0.8, rust-nix-0.15, rust-nix-0.14,
rust-nom-4.2, rust-odds-0.3, rust-once-cell-1.2, rust-openssl-0.10,
rust-ordermap-0.3, rust-parking-lot-0.9, rust-parking-lot-0.8,
rust-parking-lot-0.7, rust-proptest-0.9, rust-pulldown-cmark-0.4,
rust-rayon-1.3, rust-rayon-1.1, rust-rayon-core-1.7,
rust-rayon-core-1.5, rust-regex-1.3, rust-regex-1.1, rust-regex-0.2,
rust-regex-automata-0.1, rust-schannel-0.1, rust-scoped-threadpool-0.1,
rust-string-cache-0.7, rust-thread-local-1.0, rust-thread-local-0.3,
rust-tokio-process-0.2, rust-tokio-reactor-0.1,
rust-tokio-trace-core-0.2, rust-try-build-1.0, rust-ucd-parse-0.1,
rust-wasm-bindegen-backend-0.2, rust-wasm-bindgen-futures-0.3): Use
rust-lazy-static-1.
* gnu/packages/rust-apps.scm (exa, fd, ripgrep, tokei): Same.
* gnu/packages/gnome.scm (librsvg-next-source): Same.
2020-02-08 21:12:19 +00:00
|
|
|
("rust-lazy-static" ,rust-lazy-static-1)
|
2020-02-01 04:51:17 +00:00
|
|
|
("rust-libc" ,rust-libc-0.2)
|
|
|
|
("rust-locale" ,rust-locale-0.2)
|
|
|
|
("rust-log" ,rust-log-0.4)
|
|
|
|
("rust-natord" ,rust-natord-1.0)
|
2020-06-24 23:05:40 +00:00
|
|
|
("rust-num-cpus" ,rust-num-cpus-1)
|
2020-02-01 04:51:17 +00:00
|
|
|
("rust-number-prefix" ,rust-number-prefix-0.3)
|
|
|
|
("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
|
|
|
|
("rust-term-grid" ,rust-term-grid-0.1)
|
|
|
|
("rust-term-size" ,rust-term-size-0.3)
|
|
|
|
("rust-unicode-width" ,rust-unicode-width-0.1)
|
|
|
|
("rust-users" ,rust-users-0.9)
|
|
|
|
("rust-zoneinfo-compiled" ,rust-zoneinfo-compiled-0.4))
|
|
|
|
#:cargo-development-inputs
|
|
|
|
(("rust-datetime" ,rust-datetime-0.4))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'configure 'dont-vendor-sources
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((openssl (assoc-ref inputs "openssl")))
|
|
|
|
(setenv "OPENSSL_DIR" openssl))
|
|
|
|
#t))
|
|
|
|
;; Ignoring failing tests.
|
|
|
|
;; Reported in https://github.com/ogham/exa/issues/318
|
|
|
|
(add-before 'check 'disable-failing-tests
|
|
|
|
(lambda _
|
|
|
|
(substitute* "src/options/mod.rs"
|
|
|
|
(("^.*fn oneline_across.*" oneline-across)
|
|
|
|
(string-append "#[ignore]\n" oneline-across)))
|
|
|
|
|
|
|
|
(substitute* "src/options/view.rs"
|
|
|
|
(("test!\\(across:.*") "")
|
|
|
|
(("test!\\(empty:.*") "")
|
|
|
|
(("test!\\(gracross:.*") "")
|
|
|
|
(("test!\\(grid:.*") "")
|
|
|
|
(("test!\\(icons:.*") "")
|
|
|
|
(("test!\\(just_binary:.*") "")
|
|
|
|
(("test!\\(just_blocks:.*") "")
|
|
|
|
(("test!\\(just_bytes:.*") "")
|
|
|
|
(("test!\\(just_git:.*") "")
|
|
|
|
(("test!\\(just_group:.*") "")
|
|
|
|
(("test!\\(just_header:.*") "")
|
|
|
|
(("test!\\(just_inode:.*") "")
|
|
|
|
(("test!\\(just_links:.*") "")
|
|
|
|
(("test!\\(leg:.*") "")
|
|
|
|
(("test!\\(lid:.*") "")
|
|
|
|
(("test!\\(original_g:.*") ""))
|
2020-02-05 21:27:38 +00:00
|
|
|
#t))
|
|
|
|
(add-after 'install 'install-extras
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(share (string-append out "/share"))
|
|
|
|
(man1 (string-append share "/man/man1")))
|
|
|
|
(install-file "contrib/man/exa.1" man1)
|
|
|
|
(mkdir-p (string-append out "/etc/bash_completion.d"))
|
|
|
|
(mkdir-p (string-append share "/fish/vendor_completions.d"))
|
|
|
|
(mkdir-p (string-append share "/zsh/site-functions"))
|
|
|
|
(copy-file "contrib/completions.bash"
|
|
|
|
(string-append out "/etc/bash_completion.d/exa"))
|
|
|
|
(copy-file "contrib/completions.fish"
|
|
|
|
(string-append share "/fish/vendor_completions.d/exa.fish"))
|
|
|
|
(copy-file "contrib/completions.zsh"
|
|
|
|
(string-append share "/zsh/site-functions/_exa"))
|
|
|
|
#t))))))
|
2020-02-01 04:51:17 +00:00
|
|
|
(inputs
|
|
|
|
`(("libgit2" ,libgit2)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(home-page "https://the.exa.website/")
|
|
|
|
(synopsis "Modern replacement for ls")
|
|
|
|
(description "@code{exa} is a modern replacement for the command-line
|
|
|
|
program @code{ls}. It uses colours to distinguish file types and metadata. It
|
|
|
|
also knows about symlinks, extended attributes, and Git.")
|
|
|
|
(license license:expat)))
|
|
|
|
|
2020-01-21 17:33:33 +00:00
|
|
|
(define-public fd
|
|
|
|
(package
|
|
|
|
(name "fd")
|
2020-06-24 14:14:08 +00:00
|
|
|
(version "8.1.1")
|
2020-01-21 17:33:33 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "fd-find" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-06-24 14:14:08 +00:00
|
|
|
"124a5r8hpk2phs1288jybh34d48yxy44wr7gv5ggchs272gs2jam"))))
|
2020-01-21 17:33:33 +00:00
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs
|
|
|
|
(("rust-ansi-term" ,rust-ansi-term-0.12)
|
2020-06-24 14:14:08 +00:00
|
|
|
("rust-anyhow" ,rust-anyhow-1.0)
|
2020-01-21 17:33:33 +00:00
|
|
|
("rust-atty" ,rust-atty-0.2)
|
|
|
|
("rust-clap" ,rust-clap-2)
|
|
|
|
("rust-ctrlc" ,rust-ctrlc-3.1)
|
2020-06-24 14:14:08 +00:00
|
|
|
("rust-dirs" ,rust-dirs-2.0)
|
2020-01-21 17:33:33 +00:00
|
|
|
("rust-globset" ,rust-globset-0.4)
|
2020-06-24 14:14:08 +00:00
|
|
|
("rust-humantime" ,rust-humantime-2)
|
2020-01-21 17:33:33 +00:00
|
|
|
("rust-ignore" ,rust-ignore-0.4)
|
|
|
|
("rust-jemallocator" ,rust-jemallocator-0.3)
|
gnu: rust-lazy-static-1: Set as reference to rust-lazy-static-1.4.
* gnu/packages/crates-io.scm (rust-lazy-static-1): New variable.
(rust-arc-swap-0.3, rust-bindgen-0.50, rust-bstr-0.2,
rust-c2-chacha-0.2, rust-clap-2, rust-clicolors-control-1.0,
rust-console-0.7, rust-criterion-0.2, rust-crossbeam-epoch-0.8,
rust-crossbeam-epoch-0.7, rust-crossbeam-utils-0.7,
rust-crossbeam-utils-0.6, rust-docopt-1.1, rust-encode-unicode-0.3,
rust-findshlibs-0.5, rust-flame-0.2, rust-getrandom-0.1,
rust-grep-cli-0.1, rust-hashbrown-0.5, rust-ignore-0.4,
rust-indexmap-1.0, rust-insta-0.8, rust-nix-0.15, rust-nix-0.14,
rust-nom-4.2, rust-odds-0.3, rust-once-cell-1.2, rust-openssl-0.10,
rust-ordermap-0.3, rust-parking-lot-0.9, rust-parking-lot-0.8,
rust-parking-lot-0.7, rust-proptest-0.9, rust-pulldown-cmark-0.4,
rust-rayon-1.3, rust-rayon-1.1, rust-rayon-core-1.7,
rust-rayon-core-1.5, rust-regex-1.3, rust-regex-1.1, rust-regex-0.2,
rust-regex-automata-0.1, rust-schannel-0.1, rust-scoped-threadpool-0.1,
rust-string-cache-0.7, rust-thread-local-1.0, rust-thread-local-0.3,
rust-tokio-process-0.2, rust-tokio-reactor-0.1,
rust-tokio-trace-core-0.2, rust-try-build-1.0, rust-ucd-parse-0.1,
rust-wasm-bindegen-backend-0.2, rust-wasm-bindgen-futures-0.3): Use
rust-lazy-static-1.
* gnu/packages/rust-apps.scm (exa, fd, ripgrep, tokei): Same.
* gnu/packages/gnome.scm (librsvg-next-source): Same.
2020-02-08 21:12:19 +00:00
|
|
|
("rust-lazy-static" ,rust-lazy-static-1)
|
2020-01-21 17:33:33 +00:00
|
|
|
("rust-libc" ,rust-libc-0.2)
|
2020-06-24 14:14:08 +00:00
|
|
|
("rust-lscolors" ,rust-lscolors-0.7)
|
2020-06-24 23:05:40 +00:00
|
|
|
("rust-num-cpus" ,rust-num-cpus-1)
|
gnu: rust-regex-1.3: Rename to rust-regex-1.
* gnu/packages/crates-io.scm (rust-regex-1.3): Rename to rust-regex-1.
(rust-ansi-term-0.12, rust-bindgen-0.52, rust-bindgen-0.51,
rust-bindgen-0.50, rust-bindgen-0.37, rust-bindgen-0.49, rust-clap-2,
rust-compiletest-rs-0.3, rust-console-0.9, rust-console-0.7,
rust-docopt-1.1, rust-env-logger-0.7, rust-env-logger-0.6,
rust-env-logger-0.5, rust-gimli-0.18, rust-globset-0.4,
rust-grep-cli-0.1, rust-grep-matcher-0.1, rust-grep-regex-0.1,
rust-grep-searcher-0.1, rust-ignore-0.4, rust-lalrpop-0.17,
rust-lalrpop-util-0.17, rust-locale-config-0.3, rust-localeconfig-0.2,
rust-nom-5, rust-nom-4.2, rust-once-cell-1.2, rust-proptest-0.9,
rust-proptest-0.8, rust-pulldown-cmark-0.4, rust-regex-automata-0.1,
rust-rusqlite-0.19, rust-scan-fmt-0.2, rust-syn-1.0, rust-syn-0.15,
rust-ucd-parse-0.1, rust-version-sync-0.8) [arguments]: Adjust accordingly.
* gnu/packages/gnome.scm (librsvg-next)[arguments]: Same.
* gnu/packages/rust-apps.scm (fd, ripgrep, tokei, rust-cargo-c)
[arguments]: Same.
* gnu/packages/sequoia.scm (sequoia)[arguments]: Same.
2020-06-22 07:34:16 +00:00
|
|
|
("rust-regex" ,rust-regex-1)
|
2020-01-21 17:33:33 +00:00
|
|
|
("rust-regex-syntax" ,rust-regex-syntax-0.6)
|
2020-06-24 14:14:08 +00:00
|
|
|
("rust-users" ,rust-users-0.10)
|
2020-01-21 17:33:33 +00:00
|
|
|
("rust-version-check" ,rust-version-check-0.9))
|
|
|
|
#:cargo-development-inputs
|
|
|
|
(("rust-diff" ,rust-diff-0.1)
|
|
|
|
("rust-filetime" ,rust-filetime-0.2)
|
|
|
|
("rust-tempdir" ,rust-tempdir-0.3))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'unpack 'override-jemalloc
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((jemalloc (assoc-ref inputs "jemalloc")))
|
|
|
|
(setenv "JEMALLOC_OVERRIDE"
|
|
|
|
(string-append jemalloc "/lib/libjemalloc.so")))
|
|
|
|
#t))
|
|
|
|
(add-after 'install 'install-extra
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(install-completion
|
|
|
|
(lambda (completion out-dir)
|
|
|
|
(for-each
|
|
|
|
(lambda (f)
|
|
|
|
(install-file f (string-append out out-dir)))
|
|
|
|
(find-files "target/release/build/" completion)))))
|
|
|
|
;; Manpages
|
|
|
|
(install-file "doc/fd.1" (string-append out "/share/man/man1"))
|
|
|
|
;; Completions
|
2020-03-07 17:32:27 +00:00
|
|
|
(install-completion "^fd.bash$" "/etc/bash_completion.d")
|
2020-01-21 17:33:33 +00:00
|
|
|
(install-completion "^fd.fish$" "/share/fish/vendor_completions.d")
|
|
|
|
(install-completion "^_fd$" "/share/zsh/site-functions")
|
2020-03-07 17:32:27 +00:00
|
|
|
(rename-file (string-append out "/etc/bash_completion.d/fd.bash")
|
|
|
|
(string-append out "/etc/bash_completion.d/fd"))
|
2020-01-21 17:33:33 +00:00
|
|
|
#t))))))
|
|
|
|
(inputs `(("jemalloc" ,jemalloc)))
|
|
|
|
(home-page "https://github.com/sharkdp/fd")
|
|
|
|
(synopsis "Simple, fast and user-friendly alternative to find")
|
|
|
|
(description
|
|
|
|
"@code{fd} is a simple, fast and user-friendly alternative to @code{find}.
|
|
|
|
While it does not seek to mirror all of find's powerful functionality, it
|
|
|
|
provides defaults for 80% of the use cases.")
|
|
|
|
(license (list license:expat license:asl2.0))))
|
|
|
|
|
2019-12-15 19:27:39 +00:00
|
|
|
(define-public ripgrep
|
|
|
|
(package
|
|
|
|
(name "ripgrep")
|
2020-06-25 00:51:50 +00:00
|
|
|
(version "12.1.1")
|
2019-12-15 19:27:39 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "ripgrep" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-06-25 00:51:50 +00:00
|
|
|
"1grfi0j9zczzipipc21lkdbqmd2lvy2wlqy65fy4sckqvix5amdr"))))
|
2019-12-15 19:27:39 +00:00
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs
|
2020-02-07 21:23:22 +00:00
|
|
|
(("rust-bstr" ,rust-bstr-0.2)
|
2019-12-15 19:27:39 +00:00
|
|
|
("rust-clap" ,rust-clap-2)
|
|
|
|
("rust-grep" ,rust-grep-0.2)
|
|
|
|
("rust-ignore" ,rust-ignore-0.4)
|
2020-02-07 21:23:22 +00:00
|
|
|
("rust-jemallocator" ,rust-jemallocator-0.3)
|
gnu: rust-lazy-static-1: Set as reference to rust-lazy-static-1.4.
* gnu/packages/crates-io.scm (rust-lazy-static-1): New variable.
(rust-arc-swap-0.3, rust-bindgen-0.50, rust-bstr-0.2,
rust-c2-chacha-0.2, rust-clap-2, rust-clicolors-control-1.0,
rust-console-0.7, rust-criterion-0.2, rust-crossbeam-epoch-0.8,
rust-crossbeam-epoch-0.7, rust-crossbeam-utils-0.7,
rust-crossbeam-utils-0.6, rust-docopt-1.1, rust-encode-unicode-0.3,
rust-findshlibs-0.5, rust-flame-0.2, rust-getrandom-0.1,
rust-grep-cli-0.1, rust-hashbrown-0.5, rust-ignore-0.4,
rust-indexmap-1.0, rust-insta-0.8, rust-nix-0.15, rust-nix-0.14,
rust-nom-4.2, rust-odds-0.3, rust-once-cell-1.2, rust-openssl-0.10,
rust-ordermap-0.3, rust-parking-lot-0.9, rust-parking-lot-0.8,
rust-parking-lot-0.7, rust-proptest-0.9, rust-pulldown-cmark-0.4,
rust-rayon-1.3, rust-rayon-1.1, rust-rayon-core-1.7,
rust-rayon-core-1.5, rust-regex-1.3, rust-regex-1.1, rust-regex-0.2,
rust-regex-automata-0.1, rust-schannel-0.1, rust-scoped-threadpool-0.1,
rust-string-cache-0.7, rust-thread-local-1.0, rust-thread-local-0.3,
rust-tokio-process-0.2, rust-tokio-reactor-0.1,
rust-tokio-trace-core-0.2, rust-try-build-1.0, rust-ucd-parse-0.1,
rust-wasm-bindegen-backend-0.2, rust-wasm-bindgen-futures-0.3): Use
rust-lazy-static-1.
* gnu/packages/rust-apps.scm (exa, fd, ripgrep, tokei): Same.
* gnu/packages/gnome.scm (librsvg-next-source): Same.
2020-02-08 21:12:19 +00:00
|
|
|
("rust-lazy-static" ,rust-lazy-static-1)
|
2019-12-15 19:27:39 +00:00
|
|
|
("rust-log" ,rust-log-0.4)
|
2020-06-24 23:05:40 +00:00
|
|
|
("rust-num-cpus" ,rust-num-cpus-1)
|
gnu: rust-regex-1.3: Rename to rust-regex-1.
* gnu/packages/crates-io.scm (rust-regex-1.3): Rename to rust-regex-1.
(rust-ansi-term-0.12, rust-bindgen-0.52, rust-bindgen-0.51,
rust-bindgen-0.50, rust-bindgen-0.37, rust-bindgen-0.49, rust-clap-2,
rust-compiletest-rs-0.3, rust-console-0.9, rust-console-0.7,
rust-docopt-1.1, rust-env-logger-0.7, rust-env-logger-0.6,
rust-env-logger-0.5, rust-gimli-0.18, rust-globset-0.4,
rust-grep-cli-0.1, rust-grep-matcher-0.1, rust-grep-regex-0.1,
rust-grep-searcher-0.1, rust-ignore-0.4, rust-lalrpop-0.17,
rust-lalrpop-util-0.17, rust-locale-config-0.3, rust-localeconfig-0.2,
rust-nom-5, rust-nom-4.2, rust-once-cell-1.2, rust-proptest-0.9,
rust-proptest-0.8, rust-pulldown-cmark-0.4, rust-regex-automata-0.1,
rust-rusqlite-0.19, rust-scan-fmt-0.2, rust-syn-1.0, rust-syn-0.15,
rust-ucd-parse-0.1, rust-version-sync-0.8) [arguments]: Adjust accordingly.
* gnu/packages/gnome.scm (librsvg-next)[arguments]: Same.
* gnu/packages/rust-apps.scm (fd, ripgrep, tokei, rust-cargo-c)
[arguments]: Same.
* gnu/packages/sequoia.scm (sequoia)[arguments]: Same.
2020-06-22 07:34:16 +00:00
|
|
|
("rust-regex" ,rust-regex-1)
|
2019-12-15 19:27:39 +00:00
|
|
|
("rust-serde-json" ,rust-serde-json-1.0)
|
2020-06-24 23:05:40 +00:00
|
|
|
("rust-termcolor" ,rust-termcolor-1))
|
2019-12-15 19:27:39 +00:00
|
|
|
#:cargo-development-inputs
|
2020-02-07 21:23:22 +00:00
|
|
|
(("rust-serde" ,rust-serde-1.0)
|
2020-02-09 21:51:09 +00:00
|
|
|
("rust-serde-derive" ,rust-serde-derive-1.0))
|
|
|
|
#:modules ((ice-9 match)
|
|
|
|
(guix build cargo-build-system)
|
|
|
|
(guix build utils))
|
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'build 'install-manpage
|
|
|
|
;; NOTE: This is done before 'check so that there's only one output
|
|
|
|
;; directory with the man page.
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
(match (find-files "target" "^rg\\.1$")
|
|
|
|
((manpage)
|
|
|
|
(install-file manpage (string-append
|
|
|
|
(assoc-ref outputs "out")
|
|
|
|
"/share/man/man1"))))
|
2020-03-06 21:34:53 +00:00
|
|
|
#t)))
|
|
|
|
#:features '("pcre2")))
|
2020-02-09 21:51:09 +00:00
|
|
|
(native-inputs
|
2020-02-09 21:51:10 +00:00
|
|
|
`(("asciidoc" ,asciidoc)
|
|
|
|
("pcre2" ,pcre2)
|
|
|
|
("pkg-config" ,pkg-config)))
|
2019-12-15 19:27:39 +00:00
|
|
|
(home-page "https://github.com/BurntSushi/ripgrep")
|
|
|
|
(synopsis "Line-oriented search tool")
|
|
|
|
(description
|
|
|
|
"ripgrep is a line-oriented search tool that recursively searches
|
|
|
|
your current directory for a regex pattern while respecting your
|
|
|
|
gitignore rules.")
|
|
|
|
(license (list license:unlicense license:expat))))
|
2020-01-02 13:59:52 +00:00
|
|
|
|
|
|
|
(define-public rust-cbindgen
|
|
|
|
(package
|
|
|
|
(name "rust-cbindgen")
|
2020-07-09 16:29:59 +00:00
|
|
|
(version "0.13.2")
|
2020-01-02 13:59:52 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "cbindgen" version))
|
|
|
|
(file-name (string-append name "-" version ".crate"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-07-09 16:29:59 +00:00
|
|
|
"0673pq96hs7waavkv58v2pakpxpsfyjvbraa5kyl2b44phgdzcid"))))
|
2020-01-02 13:59:52 +00:00
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs
|
|
|
|
(("clap" ,rust-clap-2)
|
|
|
|
("log" ,rust-log-0.4)
|
|
|
|
("proc-macro2" ,rust-proc-macro2-1.0)
|
|
|
|
("quote" ,rust-quote-1.0)
|
|
|
|
("serde" ,rust-serde-1.0)
|
|
|
|
("serde-json" ,rust-serde-json-1.0)
|
|
|
|
("syn" ,rust-syn-1.0)
|
gnu: rust-tempfile-3.1: Rename to rust-tempfile-3.
* gnu/packages/crates-io.scm (rust-tempfile-3.1): Rename to ...
(rust-tempfile-3): .. this.
(rust-cairo-rs-0.8, rust-cairo-rs-0.7, rust-cc-1.0,
rust-compiletest-rs-0.3, rust-filetime-0.2, rust-gdk-pixbuf-sys-0.9,
rust-gio-sys-0.9, rust-git2-0.11, rust-glib-0.9, rust-glib-0.8,
rust-glib-sys-0.9, rust-gobject-sys-0.9, rust-handlebars-2.0,
rust-lscolors-0.6, rust-native-tls-0.2, rust-nix-0.15, rust-nix-0.14,
rust-no-panic-0.1, rust-pango-sys-0.9, rust-pangocairo-0.10,
rust-proptest-0.9, rust-proptest-0.8, rust-rustdoc-stripper-0.1,
rust-rustls-0.16, rust-rusty-fork-0.2, rust-sourcefile-0.1,
rust-tiff-0.2, rust-tokio-0.2, rust-tokio-fs-0.1, rust-tokio-uds-0.2,
rust-wayland-client-0.23, rust-wayland-client-0.21, rust-xattr-0.2)
[arguments]: Adjust accordingly.
* gnu/packages/rust-apps.scm (rust-cbindgen, tokei)[arguments]: Same.
* gnu/packages/sequoia.scm (sequoia)[arguments]: Same.
* gnu/packages/terminals.scm (alacritty)[arguments]: Same.
2020-06-22 06:51:16 +00:00
|
|
|
("tempfile" ,rust-tempfile-3)
|
2020-01-14 18:45:15 +00:00
|
|
|
("toml" ,rust-toml-0.5))))
|
2020-01-02 13:59:52 +00:00
|
|
|
(home-page "https://github.com/eqrion/cbindgen/")
|
|
|
|
(synopsis "Tool for generating C bindings to Rust code")
|
|
|
|
(description
|
|
|
|
"This package provides a tool for generating C/C++ bindings to Rust code.")
|
|
|
|
(license license:mpl2.0)))
|
2020-01-15 18:02:38 +00:00
|
|
|
|
2020-04-02 18:10:40 +00:00
|
|
|
(define-public rust-cbindgen-0.12
|
|
|
|
(package
|
|
|
|
(inherit rust-cbindgen)
|
|
|
|
(name "rust-cbindgen")
|
|
|
|
(version "0.12.2")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "cbindgen" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"13jzbmjz1bmmfr0i80hw6ar484mgabx3hbpb2ynhk0ddqi0yr58m"))))))
|
|
|
|
|
2020-01-15 18:02:38 +00:00
|
|
|
(define-public tokei
|
|
|
|
(package
|
|
|
|
(name "tokei")
|
|
|
|
(version "10.1.1")
|
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "tokei" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"07f5laqw2k9l3k8wrg9h8p2m5d9hkfxngyacwrn3vs7mlnw8l81m"))))
|
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs
|
|
|
|
(("rust-clap" ,rust-clap-2)
|
|
|
|
("rust-crossbeam-channel" ,rust-crossbeam-channel-0.4)
|
|
|
|
("rust-dirs" ,rust-dirs-2.0)
|
|
|
|
("rust-encoding-rs-io" ,rust-encoding-rs-io-0.1)
|
|
|
|
("rust-env-logger" ,rust-env-logger-0.7)
|
|
|
|
("rust-grep-searcher" ,rust-grep-searcher-0.1)
|
|
|
|
("rust-hex" ,rust-hex-0.4)
|
|
|
|
("rust-ignore" ,rust-ignore-0.4)
|
|
|
|
("rust-log" ,rust-log-0.4)
|
2020-06-22 08:07:38 +00:00
|
|
|
("rust-rayon" ,rust-rayon-1)
|
2020-01-15 18:02:38 +00:00
|
|
|
("rust-serde" ,rust-serde-1.0)
|
|
|
|
("rust-serde-cbor" ,rust-serde-cbor-0.10)
|
|
|
|
("rust-serde-derive" ,rust-serde-derive-1.0)
|
|
|
|
("rust-serde-json" ,rust-serde-json-1.0)
|
|
|
|
("rust-serde-yaml" ,rust-serde-yaml-0.8)
|
|
|
|
("rust-term-size" ,rust-term-size-0.3)
|
2020-01-21 10:52:11 +00:00
|
|
|
("rust-toml" ,rust-toml-0.5))
|
2020-01-15 18:02:38 +00:00
|
|
|
#:cargo-development-inputs
|
|
|
|
(("rust-git2" ,rust-git2-0.11)
|
|
|
|
("rust-handlebars" ,rust-handlebars-2.0)
|
|
|
|
("rust-ignore" ,rust-ignore-0.4)
|
gnu: rust-lazy-static-1: Set as reference to rust-lazy-static-1.4.
* gnu/packages/crates-io.scm (rust-lazy-static-1): New variable.
(rust-arc-swap-0.3, rust-bindgen-0.50, rust-bstr-0.2,
rust-c2-chacha-0.2, rust-clap-2, rust-clicolors-control-1.0,
rust-console-0.7, rust-criterion-0.2, rust-crossbeam-epoch-0.8,
rust-crossbeam-epoch-0.7, rust-crossbeam-utils-0.7,
rust-crossbeam-utils-0.6, rust-docopt-1.1, rust-encode-unicode-0.3,
rust-findshlibs-0.5, rust-flame-0.2, rust-getrandom-0.1,
rust-grep-cli-0.1, rust-hashbrown-0.5, rust-ignore-0.4,
rust-indexmap-1.0, rust-insta-0.8, rust-nix-0.15, rust-nix-0.14,
rust-nom-4.2, rust-odds-0.3, rust-once-cell-1.2, rust-openssl-0.10,
rust-ordermap-0.3, rust-parking-lot-0.9, rust-parking-lot-0.8,
rust-parking-lot-0.7, rust-proptest-0.9, rust-pulldown-cmark-0.4,
rust-rayon-1.3, rust-rayon-1.1, rust-rayon-core-1.7,
rust-rayon-core-1.5, rust-regex-1.3, rust-regex-1.1, rust-regex-0.2,
rust-regex-automata-0.1, rust-schannel-0.1, rust-scoped-threadpool-0.1,
rust-string-cache-0.7, rust-thread-local-1.0, rust-thread-local-0.3,
rust-tokio-process-0.2, rust-tokio-reactor-0.1,
rust-tokio-trace-core-0.2, rust-try-build-1.0, rust-ucd-parse-0.1,
rust-wasm-bindegen-backend-0.2, rust-wasm-bindgen-futures-0.3): Use
rust-lazy-static-1.
* gnu/packages/rust-apps.scm (exa, fd, ripgrep, tokei): Same.
* gnu/packages/gnome.scm (librsvg-next-source): Same.
2020-02-08 21:12:19 +00:00
|
|
|
("rust-lazy-static" ,rust-lazy-static-1)
|
gnu: rust-regex-1.3: Rename to rust-regex-1.
* gnu/packages/crates-io.scm (rust-regex-1.3): Rename to rust-regex-1.
(rust-ansi-term-0.12, rust-bindgen-0.52, rust-bindgen-0.51,
rust-bindgen-0.50, rust-bindgen-0.37, rust-bindgen-0.49, rust-clap-2,
rust-compiletest-rs-0.3, rust-console-0.9, rust-console-0.7,
rust-docopt-1.1, rust-env-logger-0.7, rust-env-logger-0.6,
rust-env-logger-0.5, rust-gimli-0.18, rust-globset-0.4,
rust-grep-cli-0.1, rust-grep-matcher-0.1, rust-grep-regex-0.1,
rust-grep-searcher-0.1, rust-ignore-0.4, rust-lalrpop-0.17,
rust-lalrpop-util-0.17, rust-locale-config-0.3, rust-localeconfig-0.2,
rust-nom-5, rust-nom-4.2, rust-once-cell-1.2, rust-proptest-0.9,
rust-proptest-0.8, rust-pulldown-cmark-0.4, rust-regex-automata-0.1,
rust-rusqlite-0.19, rust-scan-fmt-0.2, rust-syn-1.0, rust-syn-0.15,
rust-ucd-parse-0.1, rust-version-sync-0.8) [arguments]: Adjust accordingly.
* gnu/packages/gnome.scm (librsvg-next)[arguments]: Same.
* gnu/packages/rust-apps.scm (fd, ripgrep, tokei, rust-cargo-c)
[arguments]: Same.
* gnu/packages/sequoia.scm (sequoia)[arguments]: Same.
2020-06-22 07:34:16 +00:00
|
|
|
("rust-regex" ,rust-regex-1)
|
2020-01-15 18:02:38 +00:00
|
|
|
("rust-serde-json" ,rust-serde-json-1.0)
|
gnu: rust-tempfile-3.1: Rename to rust-tempfile-3.
* gnu/packages/crates-io.scm (rust-tempfile-3.1): Rename to ...
(rust-tempfile-3): .. this.
(rust-cairo-rs-0.8, rust-cairo-rs-0.7, rust-cc-1.0,
rust-compiletest-rs-0.3, rust-filetime-0.2, rust-gdk-pixbuf-sys-0.9,
rust-gio-sys-0.9, rust-git2-0.11, rust-glib-0.9, rust-glib-0.8,
rust-glib-sys-0.9, rust-gobject-sys-0.9, rust-handlebars-2.0,
rust-lscolors-0.6, rust-native-tls-0.2, rust-nix-0.15, rust-nix-0.14,
rust-no-panic-0.1, rust-pango-sys-0.9, rust-pangocairo-0.10,
rust-proptest-0.9, rust-proptest-0.8, rust-rustdoc-stripper-0.1,
rust-rustls-0.16, rust-rusty-fork-0.2, rust-sourcefile-0.1,
rust-tiff-0.2, rust-tokio-0.2, rust-tokio-fs-0.1, rust-tokio-uds-0.2,
rust-wayland-client-0.23, rust-wayland-client-0.21, rust-xattr-0.2)
[arguments]: Adjust accordingly.
* gnu/packages/rust-apps.scm (rust-cbindgen, tokei)[arguments]: Same.
* gnu/packages/sequoia.scm (sequoia)[arguments]: Same.
* gnu/packages/terminals.scm (alacritty)[arguments]: Same.
2020-06-22 06:51:16 +00:00
|
|
|
("rust-tempfile" ,rust-tempfile-3))
|
2020-01-21 10:52:11 +00:00
|
|
|
#:phases
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
(add-after 'configure 'unvendor-libraries-from-crates
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(let ((openssl (assoc-ref inputs "openssl")))
|
2020-01-27 07:17:32 +00:00
|
|
|
(setenv "OPENSSL_DIR" openssl))
|
2020-01-21 10:52:11 +00:00
|
|
|
#t)))))
|
|
|
|
(native-inputs
|
|
|
|
`(("libgit2" ,libgit2)
|
|
|
|
("openssl" ,openssl)
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
("zlib" ,zlib)))
|
2020-01-15 18:02:38 +00:00
|
|
|
(home-page "https://tokei.rs")
|
|
|
|
(synopsis "Count code, quickly")
|
|
|
|
(description
|
|
|
|
"Tokei is a program that displays statistics about your code. Tokei will
|
|
|
|
show number of files, total lines within those files and code, comments, and
|
|
|
|
blanks grouped by language.")
|
|
|
|
(license (list license:expat license:asl2.0))))
|
2020-04-02 18:10:40 +00:00
|
|
|
|
|
|
|
(define-public rust-cargo-c
|
|
|
|
(package
|
|
|
|
(name "rust-cargo-c")
|
2020-07-09 16:31:21 +00:00
|
|
|
(version "0.5.3")
|
2020-04-02 18:10:40 +00:00
|
|
|
(source
|
|
|
|
(origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (crate-uri "cargo-c" version))
|
|
|
|
(file-name
|
|
|
|
(string-append name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
2020-07-09 16:31:21 +00:00
|
|
|
"0hsag5g4qngm8alfil2dyvl5sagpqi5nb40c7bhwng2z8mv9r41k"))))
|
2020-04-02 18:10:40 +00:00
|
|
|
(build-system cargo-build-system)
|
|
|
|
(arguments
|
|
|
|
`(#:cargo-inputs
|
2020-07-09 16:31:21 +00:00
|
|
|
(("rust-cbindgen" ,rust-cbindgen)
|
|
|
|
("rust-pretty-env-logger" ,rust-pretty-env-logger-0.4)
|
2020-04-02 18:10:40 +00:00
|
|
|
("rust-structopt" ,rust-structopt-0.3)
|
|
|
|
("rust-log" ,rust-log-0.4)
|
|
|
|
("rust-toml" ,rust-toml-0.5)
|
|
|
|
("rust-cargo-metadata" ,rust-cargo-metadata-0.9)
|
|
|
|
("rust-serde" ,rust-serde-1.0)
|
|
|
|
("rust-serde-derive" ,rust-serde-derive-1.0)
|
gnu: rust-regex-1.3: Rename to rust-regex-1.
* gnu/packages/crates-io.scm (rust-regex-1.3): Rename to rust-regex-1.
(rust-ansi-term-0.12, rust-bindgen-0.52, rust-bindgen-0.51,
rust-bindgen-0.50, rust-bindgen-0.37, rust-bindgen-0.49, rust-clap-2,
rust-compiletest-rs-0.3, rust-console-0.9, rust-console-0.7,
rust-docopt-1.1, rust-env-logger-0.7, rust-env-logger-0.6,
rust-env-logger-0.5, rust-gimli-0.18, rust-globset-0.4,
rust-grep-cli-0.1, rust-grep-matcher-0.1, rust-grep-regex-0.1,
rust-grep-searcher-0.1, rust-ignore-0.4, rust-lalrpop-0.17,
rust-lalrpop-util-0.17, rust-locale-config-0.3, rust-localeconfig-0.2,
rust-nom-5, rust-nom-4.2, rust-once-cell-1.2, rust-proptest-0.9,
rust-proptest-0.8, rust-pulldown-cmark-0.4, rust-regex-automata-0.1,
rust-rusqlite-0.19, rust-scan-fmt-0.2, rust-syn-1.0, rust-syn-0.15,
rust-ucd-parse-0.1, rust-version-sync-0.8) [arguments]: Adjust accordingly.
* gnu/packages/gnome.scm (librsvg-next)[arguments]: Same.
* gnu/packages/rust-apps.scm (fd, ripgrep, tokei, rust-cargo-c)
[arguments]: Same.
* gnu/packages/sequoia.scm (sequoia)[arguments]: Same.
2020-06-22 07:34:16 +00:00
|
|
|
("rust-regex" ,rust-regex-1))))
|
2020-04-02 18:10:40 +00:00
|
|
|
(home-page "https://github.com/lu-zero/cargo-c")
|
|
|
|
(synopsis "Build and install C-compatible libraries")
|
|
|
|
(description
|
|
|
|
"This package produces and installs a correct pkg-config file, a static
|
|
|
|
library and a dynamic library, and a C header to be used by any C (and
|
|
|
|
C-compatible) software.")
|
|
|
|
(license license:expat)))
|