summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2019-09-05 17:16:05 +0300
committerEfraim Flashner <efraim@flashner.co.il>2019-09-06 15:45:58 +0300
commit412c43b42350da4b91dacc11721d1b876e9cb62e (patch)
treee91d38fd3b5264e33c2d99bdab7f0bcaf9ad8592 /gnu/packages/crates-io.scm
parente78973f45b0ebb259703b827a9b16abfee5e8112 (diff)
gnu: Add rust-compiler-builtins.
* gnu/packages/crates-io.scm (rust-compiler-builtins): New hidden variable.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b945091fdc..204257e8fc 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -362,6 +362,36 @@ CMAKE environmental variable is set.")
(license (list license:asl2.0
license:expat))))
+;; This package requires features which are unavailable
+;; on the stable releases of Rust.
+(define-public rust-compiler-builtins
+ (package
+ (name "rust-compiler-builtins")
+ (version "0.1.19")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "compiler_builtins" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1fpabpmg8paj4r5a37vmidh1jx1b7a6ilxm4s3xsxczx27ybjcjf"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-cc" ,rust-cc)
+ ("rust-rustc-std-workspace-core"
+ ,rust-rustc-std-workspace-core))))
+ (home-page "https://github.com/rust-lang-nursery/compiler-builtins")
+ (synopsis "Compiler intrinsics used by the Rust compiler")
+ (description
+ "This package provides compiler intrinsics used by the Rust compiler. This
+package is primarily useful when building the @code{core} crate yourself and you
+need compiler-rt intrinsics.")
+ (properties `((hidden? . #t)))
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-constant-time-eq
(package
(name "rust-constant-time-eq")