guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/11: gnu: Add rust-bitflags-1.3.


From: guix-commits
Subject: 10/11: gnu: Add rust-bitflags-1.3.
Date: Sun, 10 Oct 2021 05:34:48 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit e0363d7dbc53c3f27cc4b45379263ae69af7fefe
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Oct 10 11:00:49 2021 +0300

    gnu: Add rust-bitflags-1.3.
    
    * gnu/packages/crates-io.scm (rust-bitflags-1.3): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 82512e7..b4d9140 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5195,6 +5195,34 @@ behave like a set of bitflags.")
     (license (list license:asl2.0
                    license:expat))))
 
+;; TODO: Absorb this package into rust-bitflags-1 in core-updates with the
+;; newer version of rust so we don't have to track down all dependants of this
+;; package to ensure a compatible version of rust.
+(define-public rust-bitflags-1.3
+  (package
+    (inherit rust-bitflags-1)
+    (name "rust-bitflags")
+    (version "1.3.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "bitflags" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32 "12ki6w8gn1ldq7yz9y680llwk5gmrhrzszaa17g1sbrw2r2qvwxy"))))
+    (arguments
+     `(#:tests? #f      ; Tests require rust-1.46 or newer.
+       #:cargo-inputs
+       (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+        ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))
+       #:cargo-development-inputs
+       (("rust-rustversion" ,rust-rustversion-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-derive" ,rust-serde-derive-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-trybuild" ,rust-trybuild-1)
+        ("rust-walkdir" ,rust-walkdir-2))))))
+
 (define-public rust-bitflags-0.9
   (package
     (inherit rust-bitflags-1)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]