guix-commits
[Top][All Lists]
Advanced

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

195/330: gnu: Add rust-pnet-base-0.34.


From: guix-commits
Subject: 195/330: gnu: Add rust-pnet-base-0.34.
Date: Mon, 18 Mar 2024 07:16:08 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 9c94598dc8ca613276a33f81ab243fff9ca23435
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:02:49 2024 +0100

    gnu: Add rust-pnet-base-0.34.
    
    * gnu/packages/crates-io.scm (rust-pnet-base-0.34): Add variable.
    (rust-pnet-base-0.27): Inherit rust-pnet-base-0.34.
    
    Change-Id: I00cfe081f4414616c7524af5093ebd639c8cd37f
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++--------
 1 file changed, 23 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c427e00ff0..d090b7bc9c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -50115,29 +50115,44 @@ both WASM and native applications")
     (description "This package provides utils for proc-macro.")
     (license (list license:asl2.0 license:expat))))
 
-(define-public rust-pnet-base-0.27
+(define-public rust-pnet-base-0.34
   (package
     (name "rust-pnet-base")
-    (version "0.27.2")
+    (version "0.34.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "pnet_base" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "1v8bcbv9jh581ill77qjzzw2ay76pl781982yclj3xky96m8hijf"))))
+        (base32 "0k2z3jh6vw99bwl0ckpsd142n4yiscza1bmj3b86i2xk7bxzck7y"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-serde" ,rust-serde-1))
-       #:cargo-development-inputs
-       (("rust-serde-test" ,rust-serde-test-1))))
+     `(#:cargo-inputs (("rust-no-std-net" ,rust-no-std-net-0.6)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-serde-test" ,rust-serde-test-1))))
     (home-page "https://github.com/libpnet/libpnet";)
-    (synopsis "Fundamental base types and code used by pnet")
+    (synopsis "Fundamental base types and code used by pnet.")
     (description
      "This crate implements fundamental base types and code used by pnet.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pnet-base-0.27
+  (package
+    (inherit rust-pnet-base-0.34)
+    (name "rust-pnet-base")
+    (version "0.27.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pnet_base" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1v8bcbv9jh581ill77qjzzw2ay76pl781982yclj3xky96m8hijf"))))
+    (arguments
+     `(#:cargo-inputs (("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-serde-test" ,rust-serde-test-1))))))
+
 (define-public rust-pnet-datalink-0.27
   (package
     (name "rust-pnet-datalink")



reply via email to

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