From c158f2a5e76f3d5c5dbf9c584e8e10eb58b99a21 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sun, 8 Sep 2024 16:00:44 +0100 Subject: gnu: Add go-github-com-mdlayher-netlink. * gnu/packages/golang-web.scm (go-github-com-mdlayher-netlink): New variable. Change-Id: I0b2d11d8e6ebc8dd29993504f99785c206140157 --- gnu/packages/golang-web.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 6e2633c761..25306455a7 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -3128,6 +3128,46 @@ supported by HTTP PATCH method, allowing for standards based partial updates via REST APIs.") (license license:asl2.0))) +(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 + (list + #:import-path "github.com/mdlayher/netlink" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'disable-failing-tests + (lambda* (#:key tests? import-path #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (substitute* (find-files "." "_test\\.go$") + ;; failed to start command "ip": exec: "ip": executable file + ;; not found in $PATH + (("TestIntegrationConnSetBuffersSyscallConn") + "OffTestIntegrationConnSetBuffersSyscallConn")))))))) + (propagated-inputs + (list go-github-com-google-go-cmp + go-github-com-josharian-native + go-github-com-mdlayher-socket + go-golang-org-x-net + go-golang-org-x-sys)) + (home-page "https://github.com/mdlayher/netlink") + (synopsis "Low-level access to Linux netlink sockets") + (description + "This package provides a low-level access to Linux netlink +sockets (AF_NETLINK).") + (license license:expat))) + (define-public go-github-com-mdlayher-socket (package (name "go-github-com-mdlayher-socket") -- cgit v1.2.3