gnu: Add rust-core-affinity-0.8.

* gnu/packages/crates-io.scm (rust-core-affinity-0.8): New variable.
(rust-core-affinity-0.5): Inherit from rust-core-affinity-0.8.

Change-Id: I75c87bca13f701291ea84945f4e8bcb0d0ee2cb8
This commit is contained in:
Efraim Flashner 2024-03-16 21:23:37 +02:00
parent 39c1f05bed
commit df771ebcd5
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -14622,8 +14622,30 @@ in @code{no_std}. Alloc support is optional.")
(("rust-env-logger" ,rust-env-logger-0.7)
("rust-pretty-assertions" ,rust-pretty-assertions-0.6))))))
(define-public rust-core-affinity-0.8
(package
(name "rust-core-affinity")
(version "0.8.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "core_affinity" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0113rfzyvjpl1camxnrf92pn9vakhn9zqvgir0wgrqawcgsr4a32"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs (("rust-libc" ,rust-libc-0.2)
("rust-num-cpus" ,rust-num-cpus-1)
("rust-winapi" ,rust-winapi-0.3))))
(home-page "https://github.com/Elzair/core_affinity_rs")
(synopsis "Manage CPU affinities")
(description "This package manages CPU affinities.")
(license (list license:expat license:asl2.0))))
(define-public rust-core-affinity-0.5
(package
(inherit rust-core-affinity-0.8)
(name "rust-core-affinity")
(version "0.5.10")
(source
@ -14633,17 +14655,12 @@ in @code{no_std}. Alloc support is optional.")
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "07qpwyxps4gp3gci2p6c5h4cmcql7551bp91qgbv0ky3bh8h72kz"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-kernel32-sys" ,rust-kernel32-sys-0.2)
("rust-libc" ,rust-libc-0.2)
("rust-num-cpus" ,rust-num-cpus-1)
("rust-winapi" ,rust-winapi-0.2))))
(home-page "https://github.com/Elzair/core_affinity_rs")
(synopsis "Manage CPU affinities")
(description "This package manages CPU affinities.")
(license (list license:expat license:asl2.0))))
("rust-winapi" ,rust-winapi-0.2))))))
(define-public rust-core-arch-0.1
(package