summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-05-16 22:22:02 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-08-14 19:37:41 +0300
commit3e2a2616be781d4974674cc5dd7c0e0e873fa8bd (patch)
tree91d10279fae8d48c7e0f90bb3880fe1d7be9ece8 /gnu/packages
parent3710685a57c41eef6bf59facd2c12a02f10e4e29 (diff)
downloadguix-3e2a2616be781d4974674cc5dd7c0e0e873fa8bd.tar.gz
gnu: rust-nix-0.22: Update to 0.22.3.
* gnu/packages/crates-io.scm (rust-nix-0.22): Update to 0.22.3.
[source]: Add snippet allowing newer versions of dependencies.
[arguments]: Don't skip build. Skip tests.
[cargo-inputs]: Replace rust-bitflags-1.2 with 1.
[cargo-development-inputs]: Add rust-assert-impl-0.1, rust-caps-0.5,
rust-lazy-static-1, rust-rand-0.8, rust-semver-1, rust-sysctl-0.1,
rust-tempfile-3.
[inputs]: Replace rust-bitflags-1.2 with rust-bitflags.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm24
1 files changed, 18 insertions, 6 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fdab1e6c7e..511e12e509 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -38942,24 +38942,36 @@ while still providing platform specific APIs.")
   (package
     (inherit rust-nix-0.23)
     (name "rust-nix")
-    (version "0.22.1")
+    (version "0.22.3")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "nix" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0cahgzxhdwsaa8491n6cn8gadgfsxk5razyfw4xr3k34f5n5smg7"))))
+        (base32 "1bsgc8vjq07a1wg9vz819bva3dvn58an4r87h80dxrfqkqanz4g4"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  ((">= 1\\.1\\.0, < 1\\.3\\.0") ">= 1.1.0"))))))
     (arguments
-     `(#:skip-build? #t
+     `(#:tests? #f      ; Tests hang forever.
        #:cargo-inputs
-       (("rust-bitflags" ,rust-bitflags-1.2)
+       (("rust-bitflags" ,rust-bitflags-1)
         ("rust-cc" ,rust-cc-1)
         ("rust-cfg-if" ,rust-cfg-if-1)
         ("rust-libc" ,rust-libc-0.2)
-        ("rust-memoffset" ,rust-memoffset-0.6))))
+        ("rust-memoffset" ,rust-memoffset-0.6))
+       #:cargo-development-inputs
+       (("rust-assert-impl" ,rust-assert-impl-0.1)
+        ("rust-caps" ,rust-caps-0.5)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-semver" ,rust-semver-1)
+        ("rust-sysctl" ,rust-sysctl-0.1)
+        ("rust-tempfile" ,rust-tempfile-3))))
     (inputs
-     (list rust-bitflags-1.2 rust-cc-1 rust-cfg-if-1 rust-libc-0.2
+     (list rust-bitflags-1 rust-cc-1 rust-cfg-if-1 rust-libc-0.2
            rust-memoffset-0.6))))
 
 (define-public rust-nix-0.21