[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
49/54: gnu: tokei: Unbundle some dependencies.
From: |
guix-commits |
Subject: |
49/54: gnu: tokei: Unbundle some dependencies. |
Date: |
Tue, 21 Jan 2020 09:35:33 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit c40e3d0bade9cc594c9959ce75d6c747d2973617
Author: Efraim Flashner <address@hidden>
AuthorDate: Tue Jan 21 12:52:11 2020 +0200
gnu: tokei: Unbundle some dependencies.
* gnu/packages/rust-apps.scm (tokei)[arguments]: Add custom phase to
delete vendored sources and set environment variables. Remove
rust-cc-1.0, rust-pkg-config-0.3, rust-toml-0.5 from cargo-inputs.
[native-inputs]: Add libgit2, openssl, pkg-config, zlib.
---
gnu/packages/rust-apps.scm | 40 +++++++++++++++++++++++++++++++++-------
1 file changed, 33 insertions(+), 7 deletions(-)
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 1272d40..8ad3c0c 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -22,7 +22,11 @@
#:use-module (guix build-system cargo)
#:use-module (guix download)
#:use-module (guix packages)
- #:use-module (gnu packages crates-io))
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages crates-io)
+ #:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages tls)
+ #:use-module (gnu packages version-control))
(define-public ripgrep
(package
@@ -125,11 +129,7 @@ gitignore rules.")
("rust-serde-json" ,rust-serde-json-1.0)
("rust-serde-yaml" ,rust-serde-yaml-0.8)
("rust-term-size" ,rust-term-size-0.3)
- ("rust-toml" ,rust-toml-0.5)
- ;; Transitive build dependencies:
- ("rust-cc" ,rust-cc-1.0)
- ("rust-pkg-config" ,rust-pkg-config-0.3)
- ("rust-vcpkg" ,rust-vcpkg-0.2))
+ ("rust-toml" ,rust-toml-0.5))
#:cargo-development-inputs
(("rust-git2" ,rust-git2-0.11)
("rust-handlebars" ,rust-handlebars-2.0)
@@ -137,7 +137,33 @@ gitignore rules.")
("rust-lazy-static" ,rust-lazy-static-1.4)
("rust-regex" ,rust-regex-1.3)
("rust-serde-json" ,rust-serde-json-1.0)
- ("rust-tempfile" ,rust-tempfile-3.0))))
+ ("rust-tempfile" ,rust-tempfile-3.0))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'unvendor-libraries-from-crates
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((openssl (assoc-ref inputs "openssl")))
+ (setenv "OPENSSL_DIR" openssl)
+ (setenv "LIBGIT2_SYS_USE_PKG_CONFIG" "1")
+ (setenv "LIBSSH2_SYS_USE_PKG_CONFIG" "1")
+ (delete-file-recursively
+ (string-append "guix-vendor/rust-libgit2-sys-"
+ ,(package-version rust-libgit2-sys-0.10)
+ ".crate/libgit2"))
+ (delete-file-recursively
+ (string-append "guix-vendor/rust-libssh2-sys-"
+ ,(package-version rust-libssh2-sys-0.2)
+ ".crate/libssh2"))
+ (delete-file-recursively
+ (string-append "guix-vendor/rust-libz-sys-"
+ ,(package-version rust-libz-sys-1.0)
+ ".crate/src/zlib")))
+ #t)))))
+ (native-inputs
+ `(("libgit2" ,libgit2)
+ ("openssl" ,openssl)
+ ("pkg-config" ,pkg-config)
+ ("zlib" ,zlib)))
(home-page "https://tokei.rs")
(synopsis "Count code, quickly")
(description
- 27/54: gnu: Add rust-aho-corasick-0.6., (continued)
- 27/54: gnu: Add rust-aho-corasick-0.6., guix-commits, 2020/01/21
- 28/54: gnu: Add rust-quickcheck-0.7., guix-commits, 2020/01/21
- 29/54: gnu: Add rust-env-logger-0.5., guix-commits, 2020/01/21
- 30/54: gnu: Add rust-rand-core-0.2., guix-commits, 2020/01/21
- 31/54: gnu: Add rust-regex-syntax-0.5., guix-commits, 2020/01/21
- 32/54: gnu: Add rust-quickcheck-0.6., guix-commits, 2020/01/21
- 33/54: gnu: Add rust-tokio-core-0.1., guix-commits, 2020/01/21
- 36/54: gnu: rust-pest-meta-2.1: Update dependencies., guix-commits, 2020/01/21
- 39/54: gnu: rust-kernel32-sys-0.2: Update dependencies., guix-commits, 2020/01/21
- 43/54: gnu: rust-thread-local-1.0: Don't hide package., guix-commits, 2020/01/21
- 49/54: gnu: tokei: Unbundle some dependencies.,
guix-commits <=
- 37/54: gnu: rust-pest-meta-2.1: Update to 2.1.2., guix-commits, 2020/01/21
- 42/54: gnu: rust-thread-local-0.3: Don't hide package., guix-commits, 2020/01/21
- 46/54: gnu: Add rust-rust-argon2-0.5., guix-commits, 2020/01/21
- 38/54: gnu: rust-pest-generator-2.1: Update to 2.1.1., guix-commits, 2020/01/21
- 25/54: gnu: Add rust-env-logger-0.4., guix-commits, 2020/01/21
- 53/54: gnu: rust-libssh2-sys-0.2: Update to 0.2.14., guix-commits, 2020/01/21
- 52/54: gnu: rust-openssl-sys-0.9: Don't hide package., guix-commits, 2020/01/21
- 54/54: gnu: librsvg-next-source: Replace and update some dependencies., guix-commits, 2020/01/21
- 40/54: gnu: Add rust-arrayref-0.3., guix-commits, 2020/01/21
- 44/54: gnu: Add rust-arrayvec-0.5., guix-commits, 2020/01/21