summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-12-27 14:16:12 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:56:57 +0200
commit095a65b7e02740f8ba0401f03b15f18fcafcff22 (patch)
tree4ed630c0a935f2ecf35915ec54500e37837d682c /gnu/packages
parent6a363f36496bdb60d453797f8554eec08c0d4685 (diff)
downloadguix-095a65b7e02740f8ba0401f03b15f18fcafcff22.tar.gz
gnu: rust-tls-parser-0.11: Move to (gnu packages crates-tls).
* gnu/packages/crates-io.scm (rust-tls-parser-0.11): Move from here ...
* gnu/packages/crates-tls.scm: ... to here.

Change-Id: Ib16d93596ad374a51b21f2762d8cf1da7cc21eda
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-io.scm38
-rw-r--r--gnu/packages/crates-tls.scm38
2 files changed, 38 insertions, 38 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 92419bfa48..2305b40289 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -40044,44 +40044,6 @@ non-interactive protocols can be implemented as if they were interactive.")
     (description "This package provides thousand separators for numerals.")
     (license (list license:expat license:asl2.0))))
 
-(define-public rust-tls-parser-0.11
-  (package
-    (name "rust-tls-parser")
-    (version "0.11.0")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (crate-uri "tls-parser" version))
-       (file-name
-        (string-append name "-" version ".tar.gz"))
-       (sha256
-        (base32
-         "1q0vd41sjf6pbcygp5bqlpqrxbqdd0qsqi4sm5zbzvb4vvi0d4j0"))
-       (snippet
-        #~(begin (use-modules (guix build utils))
-                 ;; Accept newer versions of rust-clap.
-                 (substitute* "Cargo.toml"
-                   (("~2\\.33") "^2.33"))))))
-    (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-7)
-        ("rust-nom-derive" ,rust-nom-derive-0.10)
-        ("rust-phf" ,rust-phf-0.10)
-        ("rust-phf-codegen" ,rust-phf-codegen-0.10)
-        ("rust-rusticata-macros" ,rust-rusticata-macros-4))
-       #:cargo-development-inputs
-       (("rust-clap" ,rust-clap-2)
-        ("rust-hex-literal" ,rust-hex-literal-0.3)
-        ("rust-pretty-assertions" ,rust-pretty-assertions-0.7))))
-    (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")
diff --git a/gnu/packages/crates-tls.scm b/gnu/packages/crates-tls.scm
index bc13eb9357..a461f2ae84 100644
--- a/gnu/packages/crates-tls.scm
+++ b/gnu/packages/crates-tls.scm
@@ -27,6 +27,7 @@
   #:use-module (guix download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
+  #:use-module (guix gexp)
   #:use-module (guix utils)
   #:use-module (gnu packages)
   #:use-module (gnu packages crates-io)
@@ -545,3 +546,40 @@ PEM-encodings commonly used to store keys and certificates at rest.")
         ("rust-untrusted" ,rust-untrusted-0.7))
        #:cargo-development-inputs (("rust-base64" ,rust-base64-0.13))))))
 
+(define-public rust-tls-parser-0.11
+  (package
+    (name "rust-tls-parser")
+    (version "0.11.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tls-parser" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1q0vd41sjf6pbcygp5bqlpqrxbqdd0qsqi4sm5zbzvb4vvi0d4j0"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 ;; Accept newer versions of rust-clap.
+                 (substitute* "Cargo.toml"
+                   (("~2\\.33") "^2.33"))))))
+    (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-7)
+        ("rust-nom-derive" ,rust-nom-derive-0.10)
+        ("rust-phf" ,rust-phf-0.10)
+        ("rust-phf-codegen" ,rust-phf-codegen-0.10)
+        ("rust-rusticata-macros" ,rust-rusticata-macros-4))
+       #:cargo-development-inputs
+       (("rust-clap" ,rust-clap-2)
+        ("rust-hex-literal" ,rust-hex-literal-0.3)
+        ("rust-pretty-assertions" ,rust-pretty-assertions-0.7))))
+    (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))))