unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#50310] [PATCH 00/22] gnu: Add sniffglue.
@ 2021-09-01  3:50 Milkey Mouse
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
  2021-09-07 20:04 ` bug#50310: [PATCH 00/22] " Nicolas Goaziou
  0 siblings, 2 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:50 UTC (permalink / raw)
  To: 50310

Hello Guix,

This patchset adds a package definition for sniffglue, a self-described
"secure multithreaded packet sniffer" in Rust. Many of its (transitive)
dependencies had not been packaged yet, so there are a decent number of
patches in this set. Thanks for looking at these patches.

Milkey Mouse (22):
  gnu: Add rust-rustyline-derive-0.2.
  gnu: Add rust-rustyline-5.
  gnu: Add rust-pledge-0.3.
  gnu: Add rust-bufstream-0.1.
  gnu: Add rust-elf-0.0.10.
  gnu: Add rust-boxxy-0.11.
  gnu: Add rust-rusticata-macros-3.
  gnu: Add rust-pretty-assertions-0.7.
  gnu: Add rust-nom-derive-0.7.
  gnu: Add rust-cookie-factory-0.3.
  gnu: Add rust-hex-literal-0.3.
  gnu: Add rust-tls-parser-0.10.
  gnu: Add rust-strum-macros-0.19.
  gnu: Add rust-strum-0.19.
  gnu: Add rust-seccomp-sys-0.1.
  gnu: Add rust-syscallz-0.15.
  gnu: Add rust-reduce-0.1.
  gnu: Add rust-pktparse-0.5.
  gnu: Add rust-pcap-sys-0.1.
  gnu: Add rust-enum-primitive-derive-0.2.
  gnu: Add rust-dhcp4r-0.2.
  gnu: Add sniffglue.

 gnu/packages/crates-io.scm | 566 +++++++++++++++++++++++++++++++++++--
 gnu/packages/rust-apps.scm |  56 ++++
 2 files changed, 599 insertions(+), 23 deletions(-)

-- 
2.33.0





^ permalink raw reply	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2.
  2021-09-01  3:50 [bug#50310] [PATCH 00/22] gnu: Add sniffglue Milkey Mouse
@ 2021-09-01  3:54 ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 02/22] gnu: Add rust-rustyline-5 Milkey Mouse
                     ` (20 more replies)
  2021-09-07 20:04 ` bug#50310: [PATCH 00/22] " Nicolas Goaziou
  1 sibling, 21 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-rustyline-derive-0.2): New variable.
---
 gnu/packages/crates-io.scm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 087ffa1d27..376347a8a4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40387,6 +40387,21 @@ sub-processes using a fork-like interface.")
     (description "This package provides Rustyline macros implementation in Rust.")
     (license license:expat)))
 
+(define-public rust-rustyline-derive-0.2
+  (package
+    (inherit rust-rustyline-derive-0.3)
+    (name "rust-rustyline-derive")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rustyline-derive" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1n3iw9kaq70dw1rvvma0gjwydbj0f2mvvqvrva69f5cl6yv1dnd0"))))))
+
 (define-public rust-ryu-1
   (package
     (name "rust-ryu")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 02/22] gnu: Add rust-rustyline-5.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 03/22] gnu: Add rust-pledge-0.3 Milkey Mouse
                     ` (19 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-rustyline-5): New variable.
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 376347a8a4..8db1208faa 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40364,6 +40364,36 @@ sub-processes using a fork-like interface.")
         ("rust-rustyline-derive" ,rust-rustyline-derive-0.3)
         ("rust-tempfile" ,rust-tempfile-3))))))
 
+(define-public rust-rustyline-5
+  (package
+    (inherit rust-rustyline-6)
+    (name "rust-rustyline")
+    (version "5.0.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rustyline" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0dd6hwm3rqj8d17gf38ffs1lh3b8dqw45j5kxnvazmm80abv2g52"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-cfg-if" ,rust-cfg-if-0.1)
+        ("rust-dirs" ,rust-dirs-2)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-memchr" ,rust-memchr-2)
+        ("rust-nix" ,rust-nix-0.14)
+        ("rust-unicode-segmentation" ,rust-unicode-segmentation-1)
+        ("rust-unicode-width" ,rust-unicode-width-0.1)
+        ("rust-utf8parse" ,rust-utf8parse-0.1)
+        ("rust-winapi" ,rust-winapi-0.3))
+       #:cargo-development-inputs
+       (("rust-assert-matches" ,rust-assert-matches-1)
+        ("rust-env-logger" ,rust-env-logger-0.7)
+        ("rust-rustyline-derive" ,rust-rustyline-derive-0.2)
+        ("rust-tempdir" ,rust-tempdir-0.3))))))
+
 (define-public rust-rustyline-derive-0.3
   (package
     (name "rust-rustyline-derive")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 03/22] gnu: Add rust-pledge-0.3.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 02/22] gnu: Add rust-rustyline-5 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 04/22] gnu: Add rust-bufstream-0.1 Milkey Mouse
                     ` (18 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-pledge-0.3): New variable.
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8db1208faa..8ce42d6b2f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -56974,6 +56974,27 @@ formatters with per-field documentation generated for each structure.
      "This crate provides async pipes, channels, mutexes, and more.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pledge-0.3
+  (package
+    (name "rust-pledge")
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pledge" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rgbnvl97ks25aanxm680687df6li6y8h3f5mvdw3806rwz8xcg2"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (home-page "https://github.com/i80and/pledge-rs")
+    (synopsis "Rust binding to OpenBSD's pledge(2) interface")
+    (description
+     "This package provides Rust bindings to OpenBSD's pledge(2) interface.")
+    (license license:expat)))
+
 (define-public rust-ptree-0.3
   (package
     (name "rust-ptree")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 04/22] gnu: Add rust-bufstream-0.1.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 02/22] gnu: Add rust-rustyline-5 Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 03/22] gnu: Add rust-pledge-0.3 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 05/22] gnu: Add rust-elf-0.0.10 Milkey Mouse
                     ` (17 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-bufstream-0.1): New variable.
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8ce42d6b2f..c3a7d52b82 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -6137,6 +6137,31 @@ system calls.  Second, exposing the internal buffer allows the user to work
 with data in place, which avoids another copy.")
     (license license:gpl3)))
 
+(define-public rust-bufstream-0.1
+  (package
+    (name "rust-bufstream")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "bufstream" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1j7f52rv73hd1crzrrfb9dr50ccmi3hb1ybd6s5dyg6jmllqkqs0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-futures" ,rust-futures-0.1)
+        ("rust-tokio-io" ,rust-tokio-io-0.1))))
+    (home-page "https://github.com/alexcrichton/bufstream")
+    (synopsis "I/O streams with separate read/write buffers")
+    (description
+     "This package provides buffered I/O for streams where each read/write
+half is separately buffered.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-bugreport-0.4
   (package
     (name "rust-bugreport")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 05/22] gnu: Add rust-elf-0.0.10.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (2 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 04/22] gnu: Add rust-bufstream-0.1 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 06/22] gnu: Add rust-boxxy-0.11 Milkey Mouse
                     ` (16 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-elf-0.0.10): New variable.
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c3a7d52b82..acef392d70 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14614,6 +14614,28 @@ signing, and verification in pure Rust.")
 @code{Right} is a general purpose sum type with two cases.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-elf-0.0.10
+  (package
+    (name "rust-elf")
+    (version "0.0.10")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "elf" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1xcpf7jdmrl7rdmd6009grahvgp3k695h5x4cadrpr70vcaxwha8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-0.5))))
+    (home-page "https://github.com/cole14/rust-elf/")
+    (synopsis "Library for parsing ELF files")
+    (description
+     "This package provides a pure-Rust library for parsing ELF files.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-emacs-0.11
   (package
     (name "rust-emacs")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 06/22] gnu: Add rust-boxxy-0.11.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (3 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 05/22] gnu: Add rust-elf-0.0.10 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 07/22] gnu: Add rust-rusticata-macros-3 Milkey Mouse
                     ` (15 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-boxxy-0.11): New variable.
---
 gnu/packages/crates-io.scm | 51 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index acef392d70..53bb2c5302 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5823,6 +5823,57 @@ functions} for a collection of hashable objects.")
     (description "This package provides a safe FnOnce boxing for Rust.")
     (license license:expat)))
 
+(define-public rust-boxxy-0.11
+  (package
+    (name "rust-boxxy")
+    (version "0.11.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "boxxy" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "10p8i30ri9rhrmlbdxp9s4k4fgsjq6q6b1x2ncchli1ad6psylms"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-base64" ,rust-base64-0.10)
+        ("rust-bufstream" ,rust-bufstream-0.1)
+        ("rust-caps" ,rust-caps-0.3)
+        ("rust-cfg-if" ,rust-cfg-if-0.1)
+        ("rust-clap" ,rust-clap-2)
+        ("rust-errno" ,rust-errno-0.2)
+        ("rust-error-chain" ,rust-error-chain-0.12)
+        ("rust-futures" ,rust-futures-0.1)
+        ("rust-http" ,rust-http-0.1)
+        ("rust-hyper" ,rust-hyper-0.12)
+        ("rust-hyper-rustls" ,rust-hyper-rustls-0.17)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-libflate" ,rust-libflate-0.1)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-nix" ,rust-nix-0.15)
+        ("rust-pledge" ,rust-pledge-0.3)
+        ("rust-regex" ,rust-regex-1)
+        ("rust-rustls" ,rust-rustls-0.16)
+        ("rust-rustyline" ,rust-rustyline-5)
+        ("rust-sha2" ,rust-sha2-0.8)
+        ("rust-tar" ,rust-tar-0.4)
+        ("rust-tokio-core" ,rust-tokio-core-0.1)
+        ("rust-url" ,rust-url-2)
+        ("rust-webpki" ,rust-webpki-0.21))
+       #:cargo-development-inputs
+       (("rust-ctrlc" ,rust-ctrlc-3)
+        ("rust-elf" ,rust-elf-0.0.10)
+        ("rust-env-logger" ,rust-env-logger-0.6))))
+    (home-page "https://github.com/kpcyrd/boxxy-rs")
+    (synopsis "Linkable sandbox explorer")
+    (description
+     "This library provides an interactive shell that can be linked into a
+program to verify sandboxing measures are adequate.")
+    (license license:lgpl3)))
+
 (define-public rust-bresenham-0.1
   (package
     (name "rust-bresenham")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 07/22] gnu: Add rust-rusticata-macros-3.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (4 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 06/22] gnu: Add rust-boxxy-0.11 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 08/22] gnu: Add rust-pretty-assertions-0.7 Milkey Mouse
                     ` (14 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-rusticata-macros-3): New variable.
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 53bb2c5302..8bb87490af 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11131,6 +11131,27 @@ number ``crunching``.")
 common cryptographic algorithms.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-rusticata-macros-3
+  (package
+    (name "rust-rusticata-macros")
+    (version "3.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rusticata-macros" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1b91k644rqblbam6rfhhmgcxs0zddldi2h0w93aapv1kqq9fbgpv"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-nom" ,rust-nom-6))))
+    (home-page "https://github.com/rusticata/rusticata-macros")
+    (synopsis "Helper macros for Rusticata")
+    (description "Helper macros for Rusticata")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-crypto-mac-0.11
   (package
     (name "rust-crypto-mac")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 08/22] gnu: Add rust-pretty-assertions-0.7.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (5 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 07/22] gnu: Add rust-rusticata-macros-3 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 09/22] gnu: Add rust-nom-derive-0.7 Milkey Mouse
                     ` (13 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-pretty-assertions-0.7): New variable.
(rust-pretty-assertions-0.6): Inherit from above.
---
 gnu/packages/crates-io.scm | 53 ++++++++++++++++++++++++++------------
 1 file changed, 37 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8bb87490af..1e86a5b558 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34252,27 +34252,26 @@ functions.")
 particularly useful for printing structured recursive data like trees.")
     (license license:expat)))
 
-(define-public rust-pretty-assertions-0.6
+(define-public rust-pretty-assertions-0.7
   (package
     (name "rust-pretty-assertions")
-    (version "0.6.1")
+    (version "0.7.2")
     (source
-      (origin
-        (method url-fetch)
-        (uri (crate-uri "pretty_assertions" version))
-        (file-name
-         (string-append name "-" version ".tar.gz"))
-        (sha256
-         (base32
-          "09yl14gnmpygiqrdlsa64lcl4w6ydjl9m8jri6kgam0v9rjf309z"))))
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pretty_assertions" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "12yris0ni87wvzhj23a5nnz7amskvahhnpikx5snhdyg09y0xaqw"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
-       #:cargo-inputs
-       (("rust-ctor" ,rust-ctor-0.1)
-        ("rust-output-vt100" ,rust-output-vt100-0.1)
-        ("rust-ansi-term" ,rust-ansi-term-0.11)
-        ("rust-difference" ,rust-difference-2))))
+     `(#:cargo-inputs
+       (("rust-ansi-term" ,rust-ansi-term-0.12)
+        ("rust-ctor" ,rust-ctor-0.1)
+        ("rust-diff" ,rust-diff-0.1)
+        ("rust-output-vt100" ,rust-output-vt100-0.1))))
     (home-page "https://github.com/colin-kiegel/rust-pretty-assertions")
     (synopsis "Drop-in replacements for assert_eq! and assert_ne!")
     (description
@@ -34280,6 +34279,28 @@ particularly useful for printing structured recursive data like trees.")
 replacements, adding colorful diffs.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-pretty-assertions-0.6
+  (package
+    (inherit rust-pretty-assertions-0.7)
+    (name "rust-pretty-assertions")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pretty_assertions" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "09yl14gnmpygiqrdlsa64lcl4w6ydjl9m8jri6kgam0v9rjf309z"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-ctor" ,rust-ctor-0.1)
+        ("rust-output-vt100" ,rust-output-vt100-0.1)
+        ("rust-ansi-term" ,rust-ansi-term-0.11)
+        ("rust-difference" ,rust-difference-2))))))
+
 (define-public rust-pretty-assertions-0.4
   (package
     (inherit rust-pretty-assertions-0.6)
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 09/22] gnu: Add rust-nom-derive-0.7.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (6 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 08/22] gnu: Add rust-pretty-assertions-0.7 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 10/22] gnu: Add rust-cookie-factory-0.3 Milkey Mouse
                     ` (12 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-nom-derive-0.7): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1e86a5b558..3120e19a14 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29064,6 +29064,34 @@ combinators library.")
       ;; This is an ancient version and all inputs are optional.
      `(#:skip-build? #t))))
 
+(define-public rust-nom-derive-0.7
+  (package
+    (name "rust-nom-derive")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "nom-derive" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1xwbbkfhr8zrlcknlj75l50rp2b267qm9sd8vphx6gwzyg24n2zz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))
+       #:cargo-development-inputs
+       (("rust-nom" ,rust-nom-6)
+        ("rust-pretty-assertions" ,rust-pretty-assertions-0.7)
+        ("rust-trybuild" ,rust-trybuild-1))))
+    (home-page "https://github.com/rust-bakery/nom-derive")
+    (synopsis "Custom derive nom parsers from struct")
+    (description "This package derives custom nom parsers from structs.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-noop-proc-macro-0.3
   (package
     (name "rust-noop-proc-macro")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 10/22] gnu: Add rust-cookie-factory-0.3.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (7 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 09/22] gnu: Add rust-nom-derive-0.7 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 11/22] gnu: Add rust-hex-literal-0.3 Milkey Mouse
                     ` (11 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-cookie-factory-0.3): New variable.
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3120e19a14..f2e8ad1923 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9665,6 +9665,30 @@ It supports signed and private (encrypted + signed) jars.")
         ("rust-sha2" ,rust-sha2-0.8)
         ("rust-time" ,rust-time-0.1))))))
 
+(define-public rust-cookie-factory-0.3
+  (package
+    (name "rust-cookie-factory")
+    (version "0.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cookie-factory" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0sqjmw85ckqhppff6gjwmvjpkii35441a51xx7cv0ih3jy2fjv9r"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:cargo-development-inputs (("rust-maplit" ,rust-maplit-1))))
+    (home-page "https://github.com/rust-bakery/cookie-factory")
+    (synopsis "Combinator-based serialization library")
+    (description
+     "This package provides a serialization library with a combinator design
+similar to the nom parser combinators library.")
+    (license license:expat)))
+
 (define-public rust-cookie-store-0.7
   (package
     (name "rust-cookie-store")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 11/22] gnu: Add rust-hex-literal-0.3.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (8 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 10/22] gnu: Add rust-cookie-factory-0.3 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 12/22] gnu: Add rust-tls-parser-0.10 Milkey Mouse
                     ` (10 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-hex-literal-0.3): New variable.
(rust-hex-literal-0.2): Inherit from above.
---
 gnu/packages/crates-io.scm | 29 ++++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f2e8ad1923..7ecf527f1a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -20588,10 +20588,10 @@ hexadecimal representation.")
        (sha256
         (base32 "1ajkw40qzn2ygnqjj9w584f6l31wi318258n84pn2hax8la2i8nn"))))))
 
-(define-public rust-hex-literal-0.2
+(define-public rust-hex-literal-0.3
   (package
     (name "rust-hex-literal")
-    (version "0.2.1")
+    (version "0.3.3")
     (source
      (origin
        (method url-fetch)
@@ -20600,12 +20600,8 @@ hexadecimal representation.")
         (string-append name "-" version ".tar.gz"))
        (sha256
         (base32
-         "1q36f0qq31ggh4ipcwb7a5g6jmci2010vn2v3qpaz4csxhhf47cn"))))
+         "0nzljsyz9rwhh4vi0xs9ya4l5g0ka754wgpy97r1j3v42c75kr11"))))
     (build-system cargo-build-system)
-    (arguments
-     `(#:cargo-inputs
-       (("rust-hex-literal-impl" ,rust-hex-literal-impl-0.2)
-        ("rust-proc-macro-hack" ,rust-proc-macro-hack-0.5))))
     (home-page "https://github.com/RustCrypto/utils")
     (synopsis
      "Convert hexadecimal string to byte array at compile time")
@@ -20614,6 +20610,25 @@ hexadecimal representation.")
 compile time.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-hex-literal-0.2
+  (package
+    (inherit rust-hex-literal-0.3)
+    (name "rust-hex-literal")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "hex-literal" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1q36f0qq31ggh4ipcwb7a5g6jmci2010vn2v3qpaz4csxhhf47cn"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-hex-literal-impl" ,rust-hex-literal-impl-0.2)
+        ("rust-proc-macro-hack" ,rust-proc-macro-hack-0.5))))))
+
 (define-public rust-hex-literal-0.1
   (package
     (inherit rust-hex-literal-0.2)
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 12/22] gnu: Add rust-tls-parser-0.10.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (9 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 11/22] gnu: Add rust-hex-literal-0.3 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 13/22] gnu: Add rust-strum-macros-0.19 Milkey Mouse
                     ` (9 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-tls-parser-0.10): New variable.
---
 gnu/packages/crates-io.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7ecf527f1a..c78ab9d2e6 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26794,6 +26794,38 @@ based on Rustls and Ring.")
        (("rust-sema" ,rust-sema-0.1)
         ("rust-winit" ,rust-winit-0.19)))))) ; 0.17?
 
+(define-public rust-tls-parser-0.10
+  (package
+    (name "rust-tls-parser")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tls-parser" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1spgykvrxlzb059zzz1hzinc4vvkpixw9nd6p94vw3rimar5m68n"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ;; requires assets not included in crates.io tarball
+       #:cargo-inputs
+       (("rust-cookie-factory" ,rust-cookie-factory-0.3)
+        ("rust-enum-primitive" ,rust-enum-primitive-0.1)
+        ("rust-nom" ,rust-nom-6)
+        ("rust-nom-derive" ,rust-nom-derive-0.7)
+        ("rust-phf" ,rust-phf-0.8)
+        ("rust-phf-codegen" ,rust-phf-codegen-0.8)
+        ("rust-rusticata-macros" ,rust-rusticata-macros-3))
+       #:cargo-development-inputs
+       (("rust-hex-literal" ,rust-hex-literal-0.3)
+        ("rust-pretty-assertions" ,rust-pretty-assertions-0.6))))
+    (home-page "https://github.com/rusticata/tls-parser")
+    (synopsis "Parser for the TLS protocol")
+    (description "This package provides a Rust parser for the TLS protocol.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-twox-hash-1
   (package
     (name "rust-twox-hash")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 13/22] gnu: Add rust-strum-macros-0.19.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (10 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 12/22] gnu: Add rust-tls-parser-0.10 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 14/22] gnu: Add rust-strum-0.19 Milkey Mouse
                     ` (8 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-strum-macros-0.19): New variable.
---
 gnu/packages/crates-io.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index c78ab9d2e6..a5f9c9da52 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46183,6 +46183,28 @@ easier in Rust.")
      "This crate provides helpful macros for working with enums and strings.")
     (license license:expat)))
 
+(define-public rust-strum-macros-0.19
+  (package
+    (inherit rust-strum-macros-0.20)
+    (name "rust-strum-macros")
+    (version "0.19.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "strum_macros" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1mgqs5x3g0d3bmr8dhalgqrzh29dwc90a06fpy0cnich52zb06z6"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-heck" ,rust-heck-0.3)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))
+       #:cargo-development-inputs
+       (("rust-strum" ,rust-strum-0.19))))))
+
 (define-public rust-strum-macros-0.18
   (package
     (inherit rust-strum-macros-0.20)
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 14/22] gnu: Add rust-strum-0.19.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (11 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 13/22] gnu: Add rust-strum-macros-0.19 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 15/22] gnu: Add rust-seccomp-sys-0.1 Milkey Mouse
                     ` (7 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-strum-0.19): New variable.
---
 gnu/packages/crates-io.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a5f9c9da52..f0a2a32caf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -46142,6 +46142,24 @@ struct.")
 easier in Rust.")
     (license license:expat)))
 
+(define-public rust-strum-0.19
+  (package
+    (inherit rust-strum-0.20)
+    (name "rust-strum")
+    (version "0.19.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "strum" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1d8i5xwkc2z7z02ibln80z1bmpjhpi9k5ckpljwj0mrvgrm2i6mq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:cargo-inputs
+       (("rust-strum-macros" ,rust-strum-macros-0.19))))))
+
 (define-public rust-strum-0.18
   (package
     (inherit rust-strum-0.20)
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 15/22] gnu: Add rust-seccomp-sys-0.1.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (12 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 14/22] gnu: Add rust-strum-0.19 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 16/22] gnu: Add rust-syscallz-0.15 Milkey Mouse
                     ` (6 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-seccomp-sys-0.1): New variable.
---
 gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f0a2a32caf..b5b2e01610 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -54,6 +54,7 @@
   #:use-module (gnu packages glib)
   #:use-module (gnu packages image)
   #:use-module (gnu packages jemalloc)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages multiprecision)
   #:use-module (gnu packages nettle)
@@ -41484,6 +41485,28 @@ Pwrite traits from the scroll crate.")
 proven statistical guarantees.")
     (license license:expat)))
 
+(define-public rust-seccomp-sys-0.1
+  (package
+    (name "rust-seccomp-sys")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "seccomp-sys" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1rkbiq1vd5d3cc4w5ql05pj1vbjqfi7zir02szwfm2khl15zgg75"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+    (inputs `(("libseccomp" ,libseccomp)))
+    (home-page "https://github.com/polachok/seccomp-sys")
+    (synopsis "Low-level bindings to libseccomp")
+    (description "This package provides low-level bindings to libseccomp.")
+    (license license:lgpl2.1)))
+
 (define-public rust-section-testing-0.0
   (package
     (name "rust-section-testing")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 16/22] gnu: Add rust-syscallz-0.15.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (13 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 15/22] gnu: Add rust-seccomp-sys-0.1 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 17/22] gnu: Add rust-reduce-0.1 Milkey Mouse
                     ` (5 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-syscallz-0.15): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index b5b2e01610..8e03d49856 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -47145,6 +47145,33 @@ system or application with the relevant platform APIs.  The library is also
 no_std compatible by default, only relying on alloc.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-syscallz-0.15
+  (package
+    (name "rust-syscallz")
+    (version "0.15.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "syscallz" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0z5yfgb6086gdvbrm8lm0i745j6d8qw653xxy3mlrzdcjk3j1skz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-log" ,rust-log-0.4)
+        ("rust-pkg-config" ,rust-pkg-config-0.3)
+        ("rust-seccomp-sys" ,rust-seccomp-sys-0.1)
+        ("rust-strum" ,rust-strum-0.19)
+        ("rust-strum-macros" ,rust-strum-macros-0.19))))
+    (inputs `(("libseccomp" ,libseccomp)))
+    (home-page "https://github.com/kpcyrd/syscallz-rs")
+    (synopsis "Simple seccomp library for rust")
+    (description "Simple seccomp library for rust")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-sysctl-0.4
   (package
     (name "rust-sysctl")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 17/22] gnu: Add rust-reduce-0.1.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (14 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 16/22] gnu: Add rust-syscallz-0.15 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 18/22] gnu: Add rust-pktparse-0.5 Milkey Mouse
                     ` (4 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-reduce-0.1): New variable.
---
 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8e03d49856..4b8ed312bb 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37261,6 +37261,27 @@ owned memory.")
 functionality.")
     (license license:expat)))
 
+(define-public rust-reduce-0.1
+  (package
+    (name "rust-reduce")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "reduce" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1mrmicr43hx3s9556zbzg0lys4nmsw0vwznd52imxhcanr3xrlhn"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/dtolnay/reduce")
+    (synopsis "Fold an iterator without an initial value")
+    (description
+     "This package provides a way to fold an iterator without a separate
+initial value.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-ref-cast-1
   (package
     (name "rust-ref-cast")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 18/22] gnu: Add rust-pktparse-0.5.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (15 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 17/22] gnu: Add rust-reduce-0.1 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 19/22] gnu: Add rust-pcap-sys-0.1 Milkey Mouse
                     ` (3 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-pktparse-0.5): New variable.
---
 gnu/packages/crates-io.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4b8ed312bb..4689898f8f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33130,6 +33130,30 @@ used in Cargo build scripts.")
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-pktparse-0.5
+  (package
+    (name "rust-pktparse")
+    (version "0.5.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pktparse" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "17a78c29l070mlwjdr3bdph785c9v5rps0if3v0s21w4nwaybhck"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-nom" ,rust-nom-5)
+        ("rust-serde" ,rust-serde-1))))
+    (home-page "https://github.com/bestouff/pktparse-rs")
+    (synopsis "Collection of packet parsers")
+    (description "This package provides a collection of parsers for various
+network packet formats.")
+    (license license:lgpl3)))
+
 (define-public rust-plain-0.2
   (package
     (name "rust-plain")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 19/22] gnu: Add rust-pcap-sys-0.1.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (16 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 18/22] gnu: Add rust-pktparse-0.5 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 20/22] gnu: Add rust-enum-primitive-derive-0.2 Milkey Mouse
                     ` (2 subsequent siblings)
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-pcap-sys-0.1): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4689898f8f..7115d27a30 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42,6 +42,7 @@
   #:use-module (guix packages)
   #:use-module (guix utils)
   #:use-module (gnu packages)
+  #:use-module (gnu packages admin)
   #:use-module (gnu packages cmake)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages crates-graphics)
@@ -32085,6 +32086,32 @@ in pure Rust.")
         ("rust-sha-1" ,rust-sha-1-0.8)
         ("rust-sha2" ,rust-sha2-0.8))))))
 
+(define-public rust-pcap-sys-0.1
+  (package
+    (name "rust-pcap-sys")
+    (version "0.1.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pcap-sys" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "18w9c8i5zjnazay86219w4789482ya617z35cw433h12wbgjaiqi"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-pkg-config" ,rust-pkg-config-0.3)
+        ("rust-winapi" ,rust-winapi-0.3))))
+    (inputs `(("libpcap" ,libpcap)))
+    (home-page "https://github.com/jmmk/rustcap")
+    (synopsis "Low-level bindings to libpcap")
+    (description "This package provides low-level Rust bindings to the libpcap
+library.")
+    (license license:expat)))
+
 (define-public rust-pcre2-0.2
   (package
     (name "rust-pcre2")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 20/22] gnu: Add rust-enum-primitive-derive-0.2.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (17 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 19/22] gnu: Add rust-pcap-sys-0.1 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 21/22] gnu: Add rust-dhcp4r-0.2 Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 22/22] gnu: Add sniffglue Milkey Mouse
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-enum-primitive-derive-0.2): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7115d27a30..68e412125b 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -15226,6 +15226,32 @@ accessor functions on enums.")
 instances for enum.")
     (license license:expat)))
 
+(define-public rust-enum-primitive-derive-0.2
+  (package
+    (name "rust-enum-primitive-derive")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "enum-primitive-derive" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0h1k2izdl5lf2na8xnj7rgwjm8gawxc2p1w8j6ahifvyka7jhljz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-num-traits" ,rust-num-traits-0.2)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))))
+    (home-page "https://gitlab.com/cardoe/enum-primitive-derive")
+    (synopsis "Reimplementation of enum_primitive using a #[derive] macro")
+    (description
+     "This package provides a custom derive using procedural macros to
+implement enum_primitive.")
+    (license license:expat)))
+
 (define-public rust-enum-to-u8-slice-derive-0.1
   (package
     (name "rust-enum-to-u8-slice-derive")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 21/22] gnu: Add rust-dhcp4r-0.2.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (18 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 20/22] gnu: Add rust-enum-primitive-derive-0.2 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  2021-09-01  3:54   ` [bug#50310] [PATCH 22/22] gnu: Add sniffglue Milkey Mouse
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/crates-io.scm (rust-dhcp4r-0.2): New variable.
---
 gnu/packages/crates-io.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 68e412125b..bacd71c0ac 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13318,6 +13318,33 @@ procedural macros")
 procedural macros.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-dhcp4r-0.2
+  (package
+    (name "rust-dhcp4r")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dhcp4r" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0paq13i9iz5545f5aw8ijxflw20fvb3k8s4m3inr5q19q5rirpbc"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-enum-primitive-derive" ,rust-enum-primitive-derive-0.2)
+        ("rust-nom" ,rust-nom-6)
+        ("rust-num-traits" ,rust-num-traits-0.2)
+        ("rust-time" ,rust-time-0.2))))
+    (home-page "https://github.com/krolaw/dhcp4r")
+    (synopsis "IPv4 DHCP library with working server example.")
+    (description
+     "This package provides a library for IPv4 DHCP including a working server
+example.")
+    (license license:bsd-3)))
+
 (define-public rust-dialoguer-0.6
   (package
     (name "rust-dialoguer")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* [bug#50310] [PATCH 22/22] gnu: Add sniffglue.
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
                     ` (19 preceding siblings ...)
  2021-09-01  3:54   ` [bug#50310] [PATCH 21/22] gnu: Add rust-dhcp4r-0.2 Milkey Mouse
@ 2021-09-01  3:54   ` Milkey Mouse
  20 siblings, 0 replies; 24+ messages in thread
From: Milkey Mouse @ 2021-09-01  3:54 UTC (permalink / raw)
  To: 50310

* gnu/packages/rust-apps.scm (sniffglue): New variable.
---
 gnu/packages/rust-apps.scm | 56 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 24e002493a..e81c7d8748 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -34,6 +34,7 @@
   #:use-module (guix download)
   #:use-module (guix git-download)
   #:use-module (guix packages)
+  #:use-module (gnu packages admin)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages crates-io)
   #:use-module (gnu packages crates-graphics)
@@ -42,6 +43,7 @@
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages jemalloc)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages ssh)
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages pkg-config)
@@ -645,6 +647,60 @@ gitignore rules.")
          (base32
           "13jzbmjz1bmmfr0i80hw6ar484mgabx3hbpb2ynhk0ddqi0yr58m"))))))
 
+(define-public sniffglue
+  (package
+    (name "sniffglue")
+    (version "0.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sniffglue" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1q1kwkw1hq38qgvc6j4b5l9m85a6lpn1jls4bm27c5kha9cg8l24"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-ansi-term" ,rust-ansi-term-0.12)
+        ("rust-anyhow" ,rust-anyhow-1)
+        ("rust-atty" ,rust-atty-0.2)
+        ("rust-base64" ,rust-base64-0.13)
+        ("rust-dhcp4r" ,rust-dhcp4r-0.2)
+        ("rust-dirs-next" ,rust-dirs-next-2)
+        ("rust-dns-parser" ,rust-dns-parser-0.8)
+        ("rust-env-logger" ,rust-env-logger-0.8)
+        ("rust-libc" ,rust-libc-0.2)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-nix" ,rust-nix-0.20)
+        ("rust-nom" ,rust-nom-6)
+        ("rust-num-cpus" ,rust-num-cpus-1)
+        ("rust-pcap-sys" ,rust-pcap-sys-0.1)
+        ("rust-pktparse" ,rust-pktparse-0.5)
+        ("rust-reduce" ,rust-reduce-0.1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-derive" ,rust-serde-derive-1)
+        ("rust-serde-json" ,rust-serde-json-1)
+        ("rust-sha2" ,rust-sha2-0.9)
+        ("rust-structopt" ,rust-structopt-0.3)
+        ("rust-syscallz" ,rust-syscallz-0.15)
+        ("rust-tls-parser" ,rust-tls-parser-0.10)
+        ("rust-toml" ,rust-toml-0.5)
+        ("rust-users" ,rust-users-0.11))
+       #:cargo-development-inputs
+       (("rust-boxxy" ,rust-boxxy-0.11))))
+    (inputs
+     `(("libpcap" ,libpcap)
+       ("libseccomp" ,libseccomp)))
+    (home-page "https://github.com/kpcyrd/sniffglue")
+    (synopsis "Secure multithreaded packet sniffer")
+    (description
+     "This package provides a network sniffer written in Rust.  Packets
+are parsed concurrently using a thread pool to utilize all cpu cores.  A goal
+of the project is to be runnable on untrusted networks without crashing.")
+    (license license:gpl3)))
+
 (define-public tectonic
   (package
     (name "tectonic")
-- 
2.33.0





^ permalink raw reply related	[flat|nested] 24+ messages in thread

* bug#50310: [PATCH 00/22] gnu: Add sniffglue.
  2021-09-01  3:50 [bug#50310] [PATCH 00/22] gnu: Add sniffglue Milkey Mouse
  2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
@ 2021-09-07 20:04 ` Nicolas Goaziou
  1 sibling, 0 replies; 24+ messages in thread
From: Nicolas Goaziou @ 2021-09-07 20:04 UTC (permalink / raw)
  To: Milkey Mouse; +Cc: 50310-done

Hello,

Milkey Mouse <milkeymouse@meme.institute> writes:

> This patchset adds a package definition for sniffglue, a self-described
> "secure multithreaded packet sniffer" in Rust. Many of its (transitive)
> dependencies had not been packaged yet, so there are a decent number of
> patches in this set. Thanks for looking at these patches.
>
> Milkey Mouse (22):
>   gnu: Add rust-rustyline-derive-0.2.
>   gnu: Add rust-rustyline-5.
>   gnu: Add rust-pledge-0.3.
>   gnu: Add rust-bufstream-0.1.
>   gnu: Add rust-elf-0.0.10.
>   gnu: Add rust-boxxy-0.11.
>   gnu: Add rust-rusticata-macros-3.
>   gnu: Add rust-pretty-assertions-0.7.
>   gnu: Add rust-nom-derive-0.7.
>   gnu: Add rust-cookie-factory-0.3.
>   gnu: Add rust-hex-literal-0.3.
>   gnu: Add rust-tls-parser-0.10.
>   gnu: Add rust-strum-macros-0.19.
>   gnu: Add rust-strum-0.19.
>   gnu: Add rust-seccomp-sys-0.1.
>   gnu: Add rust-syscallz-0.15.
>   gnu: Add rust-reduce-0.1.
>   gnu: Add rust-pktparse-0.5.
>   gnu: Add rust-pcap-sys-0.1.
>   gnu: Add rust-enum-primitive-derive-0.2.
>   gnu: Add rust-dhcp4r-0.2.
>   gnu: Add sniffglue.

Applied. Thank you!

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2021-09-07 20:05 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-01  3:50 [bug#50310] [PATCH 00/22] gnu: Add sniffglue Milkey Mouse
2021-09-01  3:54 ` [bug#50310] [PATCH 01/22] gnu: Add rust-rustyline-derive-0.2 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 02/22] gnu: Add rust-rustyline-5 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 03/22] gnu: Add rust-pledge-0.3 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 04/22] gnu: Add rust-bufstream-0.1 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 05/22] gnu: Add rust-elf-0.0.10 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 06/22] gnu: Add rust-boxxy-0.11 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 07/22] gnu: Add rust-rusticata-macros-3 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 08/22] gnu: Add rust-pretty-assertions-0.7 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 09/22] gnu: Add rust-nom-derive-0.7 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 10/22] gnu: Add rust-cookie-factory-0.3 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 11/22] gnu: Add rust-hex-literal-0.3 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 12/22] gnu: Add rust-tls-parser-0.10 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 13/22] gnu: Add rust-strum-macros-0.19 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 14/22] gnu: Add rust-strum-0.19 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 15/22] gnu: Add rust-seccomp-sys-0.1 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 16/22] gnu: Add rust-syscallz-0.15 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 17/22] gnu: Add rust-reduce-0.1 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 18/22] gnu: Add rust-pktparse-0.5 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 19/22] gnu: Add rust-pcap-sys-0.1 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 20/22] gnu: Add rust-enum-primitive-derive-0.2 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 21/22] gnu: Add rust-dhcp4r-0.2 Milkey Mouse
2021-09-01  3:54   ` [bug#50310] [PATCH 22/22] gnu: Add sniffglue Milkey Mouse
2021-09-07 20:04 ` bug#50310: [PATCH 00/22] " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).