diff options
-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 |