[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37/41: gnu: Add rust-clang-sys.
From: |
guix-commits |
Subject: |
37/41: gnu: Add rust-clang-sys. |
Date: |
Fri, 6 Sep 2019 08:47:32 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 9a5ee9928a9de0183ed1702160035319fe1d2407
Author: Efraim Flashner <address@hidden>
Date: Thu Sep 5 20:25:38 2019 +0300
gnu: Add rust-clang-sys.
* gnu/packages/crates-io.scm (rust-clang-sys): New variable.
---
gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c6aee38..4722773 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -27,6 +27,7 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages gcc)
#:use-module (gnu packages jemalloc)
+ #:use-module (gnu packages llvm)
#:use-module (gnu packages maths)
#:use-module (gnu packages pkg-config))
@@ -349,6 +350,42 @@ depending on a large number of #[cfg] parameters.
Structured like an
(license (list license:asl2.0
license:expat))))
+(define-public rust-clang-sys
+ (package
+ (name "rust-clang-sys")
+ (version "0.28.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "clang-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0ls8zcqi5bmmrvrk3b6r1ym4wlivinbv590d2dvg2xn9f44mbpl1"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-glob" ,rust-glob)
+ ("rust-libc" ,rust-libc)
+ ("rust-libloading" ,rust-libloading))
+ #:cargo-development-inputs
+ (("rust-glob" ,rust-glob))
+ #: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)))))
+ (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)))
+
(define-public rust-clicolors-control
(package
(name "rust-clicolors-control")
- 39/41: gnu: Add rust-semver-parser-0.7., (continued)
- 39/41: gnu: Add rust-semver-parser-0.7., guix-commits, 2019/09/06
- 02/41: gnu: Add rust-rand-0.3., guix-commits, 2019/09/06
- 13/41: gnu: Add rust-vcpkg., guix-commits, 2019/09/06
- 31/41: gnu: Add rust-ansi-term., guix-commits, 2019/09/06
- 28/41: gnu: Add rust-filetime., guix-commits, 2019/09/06
- 26/41: gnu: Add rust-tempfile., guix-commits, 2019/09/06
- 30/41: gnu: Add rust-socket2., guix-commits, 2019/09/06
- 33/41: gnu: Add rust-miow-0.2., guix-commits, 2019/09/06
- 01/41: gnu: Add rust-rand., guix-commits, 2019/09/06
- 40/41: gnu: Add rust-time., guix-commits, 2019/09/06
- 37/41: gnu: Add rust-clang-sys.,
guix-commits <=
- 38/41: gnu: Add rust-getopts., guix-commits, 2019/09/06
- 29/41: gnu: Add rust-tar., guix-commits, 2019/09/06
- 32/41: gnu: Add rust-miow., guix-commits, 2019/09/06