guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: Add rust-nix-0.21.


From: guix-commits
Subject: 02/03: gnu: Add rust-nix-0.21.
Date: Mon, 26 Jul 2021 05:04:14 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit 088e9b5b1b1df9ba108477a3fbc94f8fd666aa22
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Jul 26 10:50:12 2021 +0200

    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(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1a044e9..5c0395c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -28255,17 +28255,17 @@ nitrokey crate and others using it.")
 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 @@ nitrokey-test crate.")
        (("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 @@ 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.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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]