diff options
author | Steve George <steve@futurile.net> | 2023-11-09 19:38:49 +0000 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2023-11-28 07:59:53 +0200 |
commit | 10fdae7c269e536d667ec2b3f5612799b6367c30 (patch) | |
tree | 72131ff15931abb38fbf1a187bffe0d8e5e88166 /gnu/packages/crates-io.scm | |
parent | 79a8187d452fbcb19cf92900d8cd9c736aac017e (diff) | |
download | guix-10fdae7c269e536d667ec2b3f5612799b6367c30.tar.gz |
gnu: Add rust-nix-0.27.
* gnu/packages/crates-io.scm (rust-nix-0.27): New variable. (rust-nix-0.26): Inherit from rust-nix-0.27. Change-Id: I0c718a9a6116f0b93414da5f922c18e9f6946d10 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r-- | gnu/packages/crates-io.scm | 47 |
1 files changed, 38 insertions, 9 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 3a9d2337ed..43f05f032b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -48144,8 +48144,45 @@ nitrokey crate and others using it.") nitrokey-test crate.") (license license:gpl3+))) +(define-public rust-nix-0.27 + (package + (name "rust-nix") + (version "0.27.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "nix" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0ly0kkmij5f0sqz35lx9czlbk6zpihb7yh1bsy4irzwfd2f4xc1f")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; unresolved import `nix::sys::aio` + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-2) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-libc" ,rust-libc-0.2) + ("rust-memoffset" ,rust-memoffset-0.9) + ("rust-pin-utils" ,rust-pin-utils-0.1)) + #:cargo-development-inputs + (("rust-assert-impl" ,rust-assert-impl-0.1) + ("rust-caps" ,rust-caps-0.5) + ("rust-parking-lot" ,rust-parking-lot-0.12) + ("rust-rand" ,rust-rand-0.8) + ("rust-semver" ,rust-semver-1) + ("rust-sysctl" ,rust-sysctl-0.4) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/nix-rust/nix") + (synopsis "Rust friendly bindings to *nix APIs") + (description + "Nix seeks to provide friendly bindings to various *nix platform APIs. +The goal is to not provide a 100% unified interface, but to unify what can be +while still providing platform specific APIs.") + (license license:expat))) + (define-public rust-nix-0.26 (package + (inherit rust-nix-0.27) (name "rust-nix") (version "0.26.2") (source @@ -48155,7 +48192,6 @@ nitrokey-test crate.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "06lfvjhsj5zlslsg2jhijrm69npprmsh7r1667qnl7c2jv8s7pdz")))) - (build-system cargo-build-system) (arguments (list #:skip-build? #t #:cargo-inputs @@ -48164,14 +48200,7 @@ nitrokey-test crate.") ("rust-libc" ,rust-libc-0.2) ("rust-memoffset" ,rust-memoffset-0.7) ("rust-pin-utils" ,rust-pin-utils-0.1) - ("rust-static-assertions" ,rust-static-assertions-1)))) - (home-page "https://github.com/nix-rust/nix") - (synopsis "Rust friendly bindings to *nix APIs") - (description - "Nix seeks to provide friendly bindings to various *nix platform APIs. -The goal is to not provide a 100% unified interface, but to unify what can be -while still providing platform specific APIs.") - (license license:expat))) + ("rust-static-assertions" ,rust-static-assertions-1)))))) (define-public rust-nix-0.25 (package |