[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
357/471: gnu: Add rust-bitflags-2.
From: |
guix-commits |
Subject: |
357/471: gnu: Add rust-bitflags-2. |
Date: |
Wed, 3 May 2023 09:28:52 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 3b582dde70db73b67e8c09576901877036e81125
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Apr 16 13:03:47 2023 +0300
gnu: Add rust-bitflags-2.
* gnu/packages/crates-io.scm (rust-bitflags-2): New variable.
(rust-bitflags-1): Inherit from rust-bitflags-2.
---
gnu/packages/crates-io.scm | 42 ++++++++++++++++++++++++++++++++++--------
1 file changed, 34 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 6140857770..32421a8d82 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7325,8 +7325,41 @@ types.")
"This crate provides macros to generate bitfield-like struct.")
(license (list license:expat license:asl2.0))))
+(define-public rust-bitflags-2
+ (package
+ (name "rust-bitflags")
+ (version "2.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "bitflags" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1cxcbx6mm1w2d7x9xd2vcqgr69a2ydw9k110ir7rrkmmrdwyn2y7"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-arbitrary" ,rust-arbitrary-1)
+ ("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
+ ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1)
+ ("rust-serde" ,rust-serde-1))
+ #:cargo-development-inputs
+ (("rust-arbitrary" ,rust-arbitrary-1)
+ ("rust-rustversion" ,rust-rustversion-1)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-serde-test" ,rust-serde-test-1)
+ ("rust-trybuild" ,rust-trybuild-1))))
+ (home-page "https://github.com/bitflags/bitflags")
+ (synopsis "Macro to generate structures which behave like bitflags")
+ (description "This package provides a macro to generate structures which
+behave like a set of bitflags.")
+ (license (list license:asl2.0
+ license:expat))))
+
(define-public rust-bitflags-1
(package
+ (inherit rust-bitflags-2)
(name "rust-bitflags")
(version "1.3.2")
(source
@@ -7336,7 +7369,6 @@ types.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "12ki6w8gn1ldq7yz9y680llwk5gmrhrzszaa17g1sbrw2r2qvwxy"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ; Tests require rust-1.46 or newer.
#:cargo-inputs
@@ -7348,13 +7380,7 @@ types.")
("rust-serde-derive" ,rust-serde-derive-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-trybuild" ,rust-trybuild-1)
- ("rust-walkdir" ,rust-walkdir-2))))
- (home-page "https://github.com/bitflags/bitflags")
- (synopsis "Macro to generate structures which behave like bitflags")
- (description "This package provides a macro to generate structures which
-behave like a set of bitflags.")
- (license (list license:asl2.0
- license:expat))))
+ ("rust-walkdir" ,rust-walkdir-2))))))
;; XXX: The package below is meant to fix rust-nix-0.22, which has the
;; following requirements for bitflags version: ">=1.1.0 <1.3.0", and every
- 442/471: gnu: Add rust-ab-glyph-0.2., (continued)
- 442/471: gnu: Add rust-ab-glyph-0.2., guix-commits, 2023/05/03
- 445/471: gnu: rust-libloading-0.7: Update to 0.7.4., guix-commits, 2023/05/03
- 449/471: gnu: rust-bindgen-0.64: Add missing input., guix-commits, 2023/05/03
- 455/471: gnu: rust-selectors-0.21: Fix cargo inputs., guix-commits, 2023/05/03
- 469/471: gnu: rust-gmp-mpfr-sys-1: Remove bundled libraries., guix-commits, 2023/05/03
- 301/471: gnu: rust-adblock-0.7: Add missing input., guix-commits, 2023/05/03
- 309/471: gnu: rust-python3-dll-a-0.2: Update to 0.2.6., guix-commits, 2023/05/03
- 337/471: gnu: rust-rkyv-0.7: Update to 0.7.40., guix-commits, 2023/05/03
- 349/471: gnu: Add rust-windows-interface-0.46., guix-commits, 2023/05/03
- 353/471: gnu: Add rust-itoap-1., guix-commits, 2023/05/03
- 357/471: gnu: Add rust-bitflags-2.,
guix-commits <=
- 370/471: gnu: sniffglue: Update to 0.15.0., guix-commits, 2023/05/03
- 373/471: gnu: rust-git2-0.14: Build with correct libgit2., guix-commits, 2023/05/03
- 383/471: gnu: Add rust-glutin-0.30., guix-commits, 2023/05/03
- 387/471: gnu: rust-wayland-egl-0.29: Update to 0.29.5., guix-commits, 2023/05/03
- 394/471: gnu: Add rust-raw-window-handle-0.5., guix-commits, 2023/05/03
- 405/471: gnu: rust-alacritty-config-derive-0.1: Update to 0.2.1., guix-commits, 2023/05/03
- 409/471: gnu: rust-servo-fontconfig-sys-5: Don't skip build., guix-commits, 2023/05/03
- 421/471: gnu: rust-serde-json-1: Update to 1.0.96., guix-commits, 2023/05/03
- 418/471: gnu: Add rust-orbclient-0.3., guix-commits, 2023/05/03
- 422/471: gnu: rust-serde-test-1: Update to 1.0.160., guix-commits, 2023/05/03