From 088e9b5b1b1df9ba108477a3fbc94f8fd666aa22 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 26 Jul 2021 10:50:12 +0200 Subject: gnu: Add rust-nix-0.21. * gnu/packages/crates-io.scm (rust-nix-0.21): New variable. (rust-nix-0.20): Inherit from above. --- gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1a044e9b66..5c0395cdcf 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -28255,17 +28255,17 @@ (define-public rust-nitrokey-test-state-0.1 nitrokey-test crate.") (license license:gpl3+))) -(define-public rust-nix-0.20 +(define-public rust-nix-0.21 (package (name "rust-nix") - (version "0.20.0") + (version "0.21.0") (source (origin (method url-fetch) (uri (crate-uri "nix" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "12n1syfd967hblrcrrqk63a4s1h4hsybfqwblh71rihvv8cli6zs")))) + (base32 "1isfgr239sxvkcjhcp08rz2nqi4s6w5ik2l2m183ldlxqkz2hdsw")))) (build-system cargo-build-system) (arguments `(#:skip-build? #t @@ -28273,7 +28273,8 @@ (define-public rust-nix-0.20 (("rust-bitflags" ,rust-bitflags-1) ("rust-cc" ,rust-cc-1) ("rust-cfg-if" ,rust-cfg-if-1) - ("rust-libc" ,rust-libc-0.2)))) + ("rust-libc" ,rust-libc-0.2) + ("rust-memoffset" ,rust-memoffset-0.6)))) (home-page "https://github.com/nix-rust/nix") (synopsis "Rust friendly bindings to *nix APIs") (description @@ -28282,6 +28283,26 @@ (define-public rust-nix-0.20 while still providing platform specific APIs.") (license license:expat))) +(define-public rust-nix-0.20 + (package + (inherit rust-nix-0.21) + (name "rust-nix") + (version "0.20.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nix" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "12n1syfd967hblrcrrqk63a4s1h4hsybfqwblh71rihvv8cli6zs")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-bitflags" ,rust-bitflags-1) + ("rust-cc" ,rust-cc-1) + ("rust-cfg-if" ,rust-cfg-if-1) + ("rust-libc" ,rust-libc-0.2)))))) + (define-public rust-nix-0.19 (package (inherit rust-nix-0.20) -- cgit v1.2.3