summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-09 00:54:51 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-09 09:10:06 +0000
commit5b8cd910b732ee041b39e1f42df09515b19e5b50 (patch)
tree8d1a00c528609f72cfd6d28b89aef569718257c9
parent7bca044848e1440885b1a8c1a34cf2ffe81d8a0b (diff)
gnu: Add go-github-com-networkplumbing-go-nft.
* gnu/packages/golang-web.scm (go-github-com-networkplumbing-go-nft): New variable. Change-Id: I1b3146ce6055f71930a7090cf21d14fe57734cd9
-rw-r--r--gnu/packages/golang-web.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index ed5da6bfddb..2e7f20926de 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -77,6 +77,7 @@
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
#:use-module (gnu packages golang-xyz)
+ #:use-module (gnu packages linux)
#:use-module (gnu packages prometheus)
#:use-module (gnu packages specifications)
#:use-module (gnu packages tls)
@@ -8906,6 +8907,47 @@ multistream-select protocol. The protocol is defined at
Object Storage / Rackspace Cloud Files.")
(license license:expat)))
+(define-public go-github-com-networkplumbing-go-nft
+ (package
+ (name "go-github-com-networkplumbing-go-nft")
+ (version "0.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/networkplumbing/go-nft")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1gx0xh9llgi600v6qacnaxwk3j0kmmwk7d2hm9j5jpmcm8whvp2w"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/networkplumbing/go-nft"
+ #:test-flags
+ #~(list "-skip" (string-join
+ ;; Root access is required to pass these tests.
+ (list "TestConfig/#00"
+ "TestConfig/#01"
+ "TestConfig/#02"
+ "TestConfig/#03"
+ "TestNATExamples/#00"
+ "TestNftlib/#00"
+ "TestNoMacSpoofingExample/#00")
+ "|"))))
+ (native-inputs
+ (list go-github-com-stretchr-testify))
+ (propagated-inputs
+ (list nftables))
+ (home-page "https://github.com/networkplumbing/go-nft")
+ (synopsis "NFT utility bindings for Golang")
+ (description
+ "This package provides Go bindings for @command{nft} utility.
+go-nft wraps invocation of the @command{nft} utility with functions to append
+and delete rules; create, clear and delete tables and chains.")
+ (license license:asl2.0)))
+
(define-public go-github-com-nrdcg-goinwx
(package
(name "go-github-com-nrdcg-goinwx")