Subject: [bug#65974] [PATCH 16/33] gnu: Add go-github-com-mdlayher-packet.

From: Edouard Klein <[email-masked]>
Date: Thu, 14 Sep 2023 10:03:01 +0200

* gnu/packages/golang.scm (go-github-com-mdlayher-packet): New variable.
---
 gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 9723c36dc0..075f341b9b 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -13503,6 +13503,36 @@ (define-public go-github-com-mdlayher-socket
 support.")
     (license license:expat)))
 
+(define-public go-github-com-mdlayher-packet
+  (package
+    (name "go-github-com-mdlayher-packet")
+    (version "1.1.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/mdlayher/packet")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "17jms60j1xygsn5z61r2kz8yywsihf0xjzlhq3v5cpqf08mljwsn"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/mdlayher/packet"
+       #:go ,go-1.20))
+    (propagated-inputs `(("go-golang-org-x-sync" ,go-golang-org-x-sync)
+                         ("go-golang-org-x-sys" ,go-golang-org-x-sys)
+                         ("go-golang-org-x-net" ,go-golang-org-x-net)
+                         ("go-github-com-mdlayher-socket" ,go-github-com-mdlayher-socket)
+                         ("go-github-com-josharian-native" ,go-github-com-josharian-native)
+                         ("go-github-com-google-go-cmp-cmp" ,go-github-com-google-go-cmp-cmp)))
+    (home-page "https://github.com/mdlayher/packet")
+    (synopsis "packet")
+    (description
+     "Package packet provides access to Linux packet sockets (AF_PACKET).")
+    (license license:expat)))
+
+
 (define-public go-github-com-vishvananda-netlink
   (package
     (name "go-github-com-vishvananda-netlink")
-- 
2.40.1