[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/41: gnu: Add rust-gcc.
From: |
guix-commits |
Subject: |
20/41: gnu: Add rust-gcc. |
Date: |
Fri, 6 Sep 2019 08:47:28 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 02f66e9022d92d2041869231ee5adcf6009f07a9
Author: Efraim Flashner <address@hidden>
Date: Thu Sep 5 17:59:43 2019 +0300
gnu: Add rust-gcc.
* gnu/packages/crates-io.scm (rust-gcc): New variable.
---
gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f0a2948..ea43d8e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -802,6 +802,46 @@ the computation on the threads themselves.")
(license (list license:asl2.0
license:expat))))
+(define-public rust-gcc
+ (package
+ (inherit rust-cc)
+ (name "rust-gcc")
+ (version "0.3.55")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gcc" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1hng1sajn4r67hndvhjysswz8niayjwvcj42zphpxzhbz89kjpwg"))))
+ (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))
+ (home-page "https://github.com/alexcrichton/cc-rs")
+ (synopsis "Library to compile C/C++ code into a Rust library/application")
+ (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-heapsize
(package
(name "rust-heapsize")
- 03/41: gnu: Add rust-tempdir., (continued)
- 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
- 09/41: gnu: Add rust-cmake., guix-commits, 2019/09/06
- 16/41: gnu: Add rust-miniz-oxide., guix-commits, 2019/09/06
- 18/41: gnu: Add rust-netlib-src., guix-commits, 2019/09/06
- 10/41: gnu: Add rust-stacker., guix-commits, 2019/09/06
- 15/41: gnu: Add rust-memmap-0.6., guix-commits, 2019/09/06
- 22/41: gnu: Add rust-rustc-demangle., guix-commits, 2019/09/06
- 20/41: gnu: Add rust-gcc.,
guix-commits <=
- 36/41: gnu: Add rust-glob-0.2., guix-commits, 2019/09/06
- 25/41: gnu: Add rust-lzma-sys., guix-commits, 2019/09/06
- 27/41: gnu: Add rust-xattr., guix-commits, 2019/09/06
- 21/41: gnu: Add rust-pico-sys., guix-commits, 2019/09/06
- 24/41: gnu: Add rust-jemalloc-sys., guix-commits, 2019/09/06
- 41/41: gnu: Add rust-parity-wasm., guix-commits, 2019/09/06
- 23/41: gnu: Add rust-cargon., guix-commits, 2019/09/06
- 34/41: gnu: Add rust-sourcefile., guix-commits, 2019/09/06
- 35/41: gnu: Add rust-glob., guix-commits, 2019/09/06
- 39/41: gnu: Add rust-semver-parser-0.7., guix-commits, 2019/09/06