[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
116/188: gnu: Add rust-clang-sys-1.
From: |
guix-commits |
Subject: |
116/188: gnu: Add rust-clang-sys-1. |
Date: |
Mon, 12 Oct 2020 02:25:13 -0400 (EDT) |
arunisaac pushed a commit to branch master
in repository guix.
commit c91fff483d0772af1c169c8837d202eeba75431d
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Sat Sep 19 21:31:42 2020 +0530
gnu: Add rust-clang-sys-1.
* gnu/packages/crates-io.scm (rust-clang-sys-1): New variable.
(rust-clang-sys-0.29): Inherit from rust-clang-sys-1.
---
gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++++++------
1 file changed, 34 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1a3746f..4c7aaac 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3458,8 +3458,41 @@ depending on a large number of #[cfg] parameters.
Structured like an
"This package provides current CI environment information.")
(license license:asl2.0)))
+(define-public rust-clang-sys-1
+ (package
+ (name "rust-clang-sys")
+ (version "1.0.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "clang-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0695kfrqx7n091fzm6msbqg2q2kyhka64q08lm63f3l9d964i8cx"))))
+ (build-system cargo-build-system)
+ (inputs
+ `(("clang" ,clang)))
+ (arguments
+ `(#:cargo-inputs
+ (("rust-glob" ,rust-glob-0.3)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-libloading" ,rust-libloading-0.6))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'configure-clang
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "LIBCLANG_PATH" (string-append (assoc-ref inputs "clang")
+ "/lib"))
+ #t)))))
+ (home-page "https://github.com/KyleMayes/clang-sys")
+ (synopsis "Rust bindings for libclang")
+ (description "This package provides Rust bindings for libclang.")
+ (license license:asl2.0)))
+
(define-public rust-clang-sys-0.29
(package
+ (inherit rust-clang-sys-1)
(name "rust-clang-sys")
(version "0.29.3")
(source
@@ -3483,14 +3516,9 @@ depending on a large number of #[cfg] parameters.
Structured like an
(let ((clang (assoc-ref inputs "libclang")))
(setenv "LIBCLANG_PATH"
(string-append clang "/lib")))
- #t)))))
(inputs
`(("libclang" ,clang)))
- (home-page "https://github.com/KyleMayes/clang-sys")
- (synopsis "Rust bindings for libclang")
- (description
- "This package provides Rust bindings for @code{libclang}.")
- (license license:asl2.0)))
+ #t)))))))
(define-public rust-clang-sys-0.28
(package
- 159/188: gnu: Add rust-r2d2., (continued)
- 159/188: gnu: Add rust-r2d2., guix-commits, 2020/10/12
- 152/188: gnu: Add rust-h2-0.2., guix-commits, 2020/10/12
- 154/188: gnu: Add rust-parking-lot-core-0.8., guix-commits, 2020/10/12
- 163/188: gnu: Add rust-libflate-lz77-1., guix-commits, 2020/10/12
- 164/188: gnu: Add rust-libflate-1., guix-commits, 2020/10/12
- 170/188: gnu: Add rust-trust-dns-resolver-0.19., guix-commits, 2020/10/12
- 166/188: gnu: Add rust-relative-path-1., guix-commits, 2020/10/12
- 168/188: gnu: Add rust-napi-derive-0.5., guix-commits, 2020/10/12
- 174/188: gnu: Add rust-hyper-rustls-0.21., guix-commits, 2020/10/12
- 180/188: gnu: Add rust-ipconfig-0.2., guix-commits, 2020/10/12
- 116/188: gnu: Add rust-clang-sys-1.,
guix-commits <=
- 119/188: gnu: Add rust-zstd-safe-2., guix-commits, 2020/10/12
- 125/188: gnu: Add rust-tower-test-0.3., guix-commits, 2020/10/12
- 135/188: gnu: Add rust-tracing-0.1., guix-commits, 2020/10/12
- 139/188: gnu: Add rust-mimalloc-0.1., guix-commits, 2020/10/12
- 161/188: gnu: Add rust-semver-0.10., guix-commits, 2020/10/12
- 173/188: gnu: Add rust-rustls-native-certs-0.4., guix-commits, 2020/10/12
- 182/188: gnu: Add rust-path-clean-0.1., guix-commits, 2020/10/12
- 113/188: gnu: Add rust-xz2-0.1., guix-commits, 2020/10/12
- 137/188: gnu: Add rust-cty-0.2., guix-commits, 2020/10/12
- 188/188: gnu: Add rust-swc-1., guix-commits, 2020/10/12