[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/28: gnu: Add rust-cexpr-0.4.
From: |
guix-commits |
Subject: |
01/28: gnu: Add rust-cexpr-0.4. |
Date: |
Sun, 12 Jul 2020 08:55:42 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit d23f0db6f9796e5d1cd463ffa170e4f71c965911
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Fri Jul 10 17:34:55 2020 +0300
gnu: Add rust-cexpr-0.4.
* gnu/packages/crates-io.scm (rust-cexpr-0.4): New variable.
(ruxt-cexpr-0.3): Inherit from rust-cexpr-0.4.
---
gnu/packages/crates-io.scm | 46 +++++++++++++++++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 263e00b..e44d198 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2780,8 +2780,44 @@ archive to be linked into Rustcode.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-cexpr-0.4
+ (package
+ (name "rust-cexpr")
+ (version "0.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cexpr" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "09qd1k1mrhcqfhqmsz4y1bya9gcs29si7y3w96pqkgid4y2dpbpl"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-nom" ,rust-nom-5))
+ #:cargo-development-inputs
+ (("rust-clang-sys" ,rust-clang-sys-0.28))
+ #: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/jethrogb/rust-cexpr")
+ (synopsis "C expression parser and evaluator")
+ (description
+ "This package provides a C expression parser and evaluator.")
+ (license (list license:asl2.0 license:expat))))
+
(define-public rust-cexpr-0.3
(package
+ (inherit rust-cexpr-0.4)
(name "rust-cexpr")
(version "0.3.6")
(source
@@ -2793,7 +2829,6 @@ archive to be linked into Rustcode.")
(sha256
(base32
"07fdfj4ff2974y33yixrb657riq9zl9b9h9lr0h7ridhhvxvbrgw"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-nom" ,rust-nom-4.2))
@@ -2806,14 +2841,7 @@ archive to be linked into Rustcode.")
(let ((clang (assoc-ref inputs "libclang")))
(setenv "LIBCLANG_PATH"
(string-append clang "/lib")))
- #t)))))
- (inputs
- `(("libclang" ,clang)))
- (home-page "https://github.com/jethrogb/rust-cexpr")
- (synopsis "C expression parser and evaluator")
- (description
- "This package provides a C expression parser and evaluator.")
- (license (list license:asl2.0 license:expat))))
+ #t)))))))
(define-public rust-cexpr-0.2
(package
- branch master updated (d67826a -> 4fc9593), guix-commits, 2020/07/12
- 01/28: gnu: Add rust-cexpr-0.4.,
guix-commits <=
- 02/28: gnu: Add rust-clang-sys-0.29., guix-commits, 2020/07/12
- 04/28: gnu: rust-aos-sys-0.1: Update to 0.1.4., guix-commits, 2020/07/12
- 03/28: gnu: Add rust-bindgen-0.53., guix-commits, 2020/07/12
- 07/28: gnu: Add rust-terminal-size-0.1., guix-commits, 2020/07/12
- 05/28: gnu: Add rust-bindgen-0.54., guix-commits, 2020/07/12
- 06/28: gnu: rust-dav1d-sys-0.3: Update to 0.3.2., guix-commits, 2020/07/12
- 09/28: gnu: Add rust-fern-0.6., guix-commits, 2020/07/12
- 11/28: gnu: Add rust-num-rational-0.3., guix-commits, 2020/07/12
- 10/28: gnu: Add rust-num-bigint-0.3., guix-commits, 2020/07/12
- 14/28: gnu: Add rust-png-0.16., guix-commits, 2020/07/12