[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
117/189: gnu: Add rust-clang-sys-1.
From: |
guix-commits |
Subject: |
117/189: gnu: Add rust-clang-sys-1. |
Date: |
Mon, 21 Sep 2020 06:01:34 -0400 (EDT) |
arunisaac pushed a commit to branch wip-swc
in repository guix.
commit 21b8819c9d9beb935494549a0c046dc1a762c096
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 0d88e52..12a180e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3748,8 +3748,41 @@ for computer graphics.")
"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
@@ -3773,14 +3806,9 @@ for computer graphics.")
(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
- 84/189: gnu: Add rust-hash32-derive-0.1., (continued)
- 84/189: gnu: Add rust-hash32-derive-0.1., guix-commits, 2020/09/21
- 100/189: gnu: Add rust-dotenv., guix-commits, 2020/09/21
- 101/189: gnu: Add rust-publicsuffix-1., guix-commits, 2020/09/21
- 102/189: gnu: Add rust-cookie-store-0.12., guix-commits, 2020/09/21
- 107/189: gnu: Add rust-ahash., guix-commits, 2020/09/21
- 109/189: gnu: Add rust-pulse-0.5., guix-commits, 2020/09/21
- 110/189: gnu: Add rust-timebomb-0.1., guix-commits, 2020/09/21
- 112/189: gnu: Add rust-ntest-test-cases-0.3., guix-commits, 2020/09/21
- 115/189: gnu: Add rust-proptest-derive-0.1., guix-commits, 2020/09/21
- 116/189: gnu: Add rust-libloading-0.6., guix-commits, 2020/09/21
- 117/189: gnu: Add rust-clang-sys-1.,
guix-commits <=
- 121/189: gnu: Add rust-zstd-0.5., guix-commits, 2020/09/21
- 16/189: gnu: rust-url-2.1: Remove minor version from variable name., guix-commits, 2020/09/21
- 40/189: gnu: Add rust-core-foundation-0.7., guix-commits, 2020/09/21
- 74/189: gnu: Add rust-block-cipher-0.7., guix-commits, 2020/09/21
- 88/189: gnu: Add rust-heapless-0.5., guix-commits, 2020/09/21
- 95/189: gnu: Add rust-time-macros-impl-0.1., guix-commits, 2020/09/21
- 103/189: gnu: Add rust-winreg-0.7., guix-commits, 2020/09/21
- 104/189: gnu: Add rust-ipnetwork-0.17., guix-commits, 2020/09/21
- 108/189: gnu: Add rust-futures-test-0.3., guix-commits, 2020/09/21
- 22/189: gnu: rust-flate2-1.0: Remove minor version from variable name., guix-commits, 2020/09/21