Subject: [PATCH 23/33] gnu: Add go-github-com-mdlayher-netlink.

From: Edouard Klein <[email-masked]>
Date: Thu, 14 Sep 2023 09:29:36 +0200

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

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 041c14a9cc..3bf113fd70 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -80,6 +80,7 @@ (define-module (gnu packages golang)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages lua)
   #:use-module (gnu packages mail)
   #:use-module (gnu packages mp3)
@@ -13637,6 +13638,36 @@ (define-public go-github-com-cilium-ebpf
      "Package ebpf is a toolkit for working with @code{eBPF} programs.")
     (license license:expat)))
 
+(define-public go-github-com-mdlayher-netlink
+  (package
+    (name "go-github-com-mdlayher-netlink")
+    (version "1.7.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/mdlayher/netlink")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1pxd0qn73jr9n64gkp2kd8q8x7xgssm3v8a68vkh88al55g8jkma"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/mdlayher/netlink"
+       #: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)
+                         ("iproute2" ,iproute)))
+    (home-page "https://github.com/mdlayher/netlink")
+    (synopsis "netlink")
+    (description
+     "Package netlink provides low-level access to Linux netlink sockets (AF_NETLINK).")
+    (license license:expat)))
+
 (define-public go-github-com-vishvananda-netlink
   (package
     (name "go-github-com-vishvananda-netlink")
-- 
2.40.1