summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-17 16:10:46 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-17 19:40:07 +0300
commit14f3a7e37314451b9b93d7b7536f3ae3dec1ed68 (patch)
tree49a5f94566a84681d09078a53c6239c01625a9ac
parent56b695196feb17407b48dcb2562f89484ff69793 (diff)
gnu: Add rust-clang-sys-0.26.
* gnu/packages/crates-io.scm (rust-clang-sys-0.26): New variable.
-rw-r--r--gnu/packages/crates-io.scm54
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 79eee6ed32..8c68f036b5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -386,6 +386,35 @@ depending on a large number of #[cfg] parameters. Structured like an
"This package provides Rust bindings for @code{libclang}.")
(license license:asl2.0)))
+(define-public rust-clang-sys-0.26
+ (package
+ (inherit rust-clang-sys)
+ (name "rust-clang-sys")
+ (version "0.26.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "clang-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1r50dwy5hj5gq07dn0qf8222d07qv0970ymx0j8n9779yayc3w3f"))))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-glob" ,rust-glob-0.2)
+ ("rust-libc" ,rust-libc)
+ ("rust-libloading" ,rust-libloading))
+ #:cargo-development-inputs
+ (("rust-glob" ,rust-glob-0.2))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'set-environmental-variable
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((clang (assoc-ref inputs "libclang")))
+ (setenv "LIBCLANG_PATH"
+ (string-append clang "/lib")))
+ #t)))))))
+
(define-public rust-clicolors-control
(package
(name "rust-clicolors-control")
@@ -412,6 +441,31 @@ depending on a large number of #[cfg] parameters. Structured like an
colorization.")
(license license:expat)))
+(define-public rust-clippy
+ (package
+ (name "rust-clippy")
+ (version "0.0.302")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "clippy" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1562x3sq9mgmc8j39gd34wqm7ybrdvpmj7cc1n450gwsawayw4fr"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-term" ,rust-term))))
+ (home-page "https://github.com/rust-lang/rust-clippy")
+ (synopsis
+ "A bunch of helpful lints to avoid common pitfalls in Rust.")
+ (description
+ "This package provides a bunch of helpful lints to avoid common pitfalls in Rust.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-cloudabi
(package
(name "rust-cloudabi")