[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/41: gnu: Add rust-cc.
From: |
guix-commits |
Subject: |
08/41: gnu: Add rust-cc. |
Date: |
Fri, 6 Sep 2019 08:47:26 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 5bd7965e115b473ad74ab22cb07364394a990ffc
Author: Efraim Flashner <address@hidden>
Date: Thu Sep 5 16:52:02 2019 +0300
gnu: Add rust-cc.
* gnu/packages/crates-io.scm (rust-cc): New variable.
---
gnu/packages/crates-io.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ab022ab..9b715c7 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -230,6 +230,45 @@ behave like a set of bitflags.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-cc
+ (package
+ (name "rust-cc")
+ (version "1.0.41")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cc" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1zxzd559dbbf1iwdzmkj7czapzccs17kqqmsj9ayijpdix5rrbld"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(;#:cargo-inputs
+ ;(("rust-rayon" ,rust-rayon))
+ #:cargo-development-inputs
+ (("rust-tempdir" ,rust-tempdir))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'remove-optional-deps
+ (lambda _
+ (substitute* "Cargo.toml.orig"
+ ((".*optional.*") "\n")
+ ((".*features.*") "")
+ ((".*parallel.*") ""))
+ (delete-file "Cargo.toml")
+ (copy-file "Cargo.toml.orig" "Cargo.toml")
+ #t)))
+ #:tests? #f)) ; Tests require cc-test from git repo.
+ (home-page "https://github.com/alexcrichton/cc-rs")
+ (synopsis "Invoke the native C compiler")
+ (description
+ "This package provides a build-time dependency for Cargo build scripts to
+assist in invoking the native C compiler to compile native C code into a static
+archive to be linked into Rustcode.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-cfg-if
(package
(name "rust-cfg-if")
- branch master updated (e15f552 -> 41ba4cf), guix-commits, 2019/09/06
- 08/41: gnu: Add rust-cc.,
guix-commits <=
- 05/41: gnu: Add rust-base-x., guix-commits, 2019/09/06
- 04/41: gnu: Add rust-adler32., guix-commits, 2019/09/06
- 12/41: gnu: Add rust-libloading., guix-commits, 2019/09/06
- 11/41: gnu: Add rust-compiler-builtins., guix-commits, 2019/09/06
- 19/41: gnu: Add rust-openssl-probe., guix-commits, 2019/09/06
- 14/41: gnu: Add rust-memmap., guix-commits, 2019/09/06
- 03/41: gnu: Add rust-tempdir., guix-commits, 2019/09/06
- 07/41: gnu: Add rust-log., guix-commits, 2019/09/06
- 06/41: gnu: Add rust-rustc-serialize., guix-commits, 2019/09/06
- 17/41: gnu: Add rust-miniz-sys., guix-commits, 2019/09/06