Subject: [PATCH 2/3] gnu: Add go-suah-dev-protect.

From: "Artyom V. Poptsov" <[email-masked]>
Date: Tue, 17 Dec 2024 22:46:43 +0300

* gnu/packages/golang-xyz.scm (go-suah-dev-protect): New variable.

Change-Id: Idf224b6571da2aefb99811ee3cd9fead67614d61
---
 gnu/packages/golang-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index f8c63976d6..ae19116b51 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -8842,6 +8842,32 @@ (define-public go-sentences
                     "  This package provides an command line interface (CLI)
 tool."))))
 
+(define-public go-suah-dev-protect
+  (package
+    (name "go-suah-dev-protect")
+    (version "1.2.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://codeberg.org/qbit/protect")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1f36w2435xivggl4d31813ggk37ya9v8q6w8ygbp35ypzwfgzlh3"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "suah.dev/protect"))
+    (home-page "https://codeberg.org/qbit/protect")
+    (synopsis "Wrapper for OpenBSD's pledge and unveil system calls.")
+    (description
+     "Package protect is a wrapper for OpenBSD's @code{pledge} and @code{unveil}
+system calls.
+
+It allows one to safely call Unveil / Pledge on non-OpenBSD operating systems.")
+    (license license:isc)))
+
 (define-public go-tengo
   (package
     (inherit go-github-com-d5-tengo-v2)
-- 
2.46.0