summaryrefslogtreecommitdiff
path: root/gnu/packages/golang-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/golang-xyz.scm')
-rw-r--r--gnu/packages/golang-xyz.scm226
1 files changed, 181 insertions, 45 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index f7126c2d7e..a122e6b989 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1013,6 +1013,32 @@ Distance}.")
http://tartarus.org/~martin/PorterStemmer/index.html.")
(license license:expat)))
+(define-public go-github-com-akamensky-argparse
+ (package
+ (name "go-github-com-akamensky-argparse")
+ (version "1.4.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/akamensky/argparse")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1m7rzrfwyrwxbbry5ppds2b3c5gdslpakvjhsh6i8mhdfhywd8wc"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ ;; Panic: unexpected call to os.Exit(0) during test.
+ #:test-flags #~(list "-skip" "TestUsageString")
+ #:import-path "github.com/akamensky/argparse"))
+ (home-page "https://github.com/akamensky/argparse")
+ (synopsis "Argparse for golang")
+ (description
+ "This package implements a flexible and configurable option for command
+line arguments parsing.")
+ (license license:expat)))
+
(define-public go-github-com-alecaivazis-survey-v2
(package
(name "go-github-com-alecaivazis-survey-v2")
@@ -4625,6 +4651,30 @@ submodules:
@end itemize")
(license license:asl2.0)))
+(define-public go-github-com-cosiner-argv
+ (package
+ (name "go-github-com-cosiner-argv")
+ (version "0.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cosiner/argv")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ard8655lr4rqd929pvn9phv4mbgzrl3rswcl6i7p97cls7gn2yc"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/cosiner/argv"))
+ (home-page "https://github.com/cosiner/argv")
+ (synopsis "Split command line string into arguments array")
+ (description
+ "Package argv parses command line string into arguments array using the
+bash syntax.")
+ (license license:expat)))
+
(define-public go-github-com-couchbase-gomemcached
(package
(name "go-github-com-couchbase-gomemcached")
@@ -5367,6 +5417,46 @@ formatting information, rather than the current locale name.")
encoding/decoding. It has no dependencies.")
(license license:expat)))
+(define-public go-github-com-derekparker-trie
+ (package
+ (name "go-github-com-derekparker-trie")
+ (version "0.0.0-20230829180723-39f4de51ef7d")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/derekparker/trie")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0ik8xsxm7bd12lycga6d0zw561axmdwdqxi5qbf39n7mw41l9vj2"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/derekparker/trie"))
+ (home-page "https://github.com/derekparker/trie")
+ (synopsis "Prefix/fuzzy string searching in Golang")
+ (description "Implementation of an R-Way Trie data structure.")
+ (license license:expat)))
+
+(define-public go-github-com-derekparker-trie-v3
+ (package
+ (inherit go-github-com-derekparker-trie)
+ (name "go-github-com-derekparker-trie-v3")
+ (version "3.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/derekparker/trie")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "02br0cw2wh27xffs1hsbwh145d3vpaihcd7mygf36ihdhrp00pka"))))
+ (arguments
+ (list
+ #:import-path "github.com/derekparker/trie/v3"))))
+
(define-public go-github-com-detailyang-go-fallocate
(package
(name "go-github-com-detailyang-go-fallocate")
@@ -7511,6 +7601,35 @@ killing a command. All operations are safe to call from multiple
goroutines.")
(license license:expat)))
+;; For delve@1.25.1
+(define-public go-github-com-go-delve-liner
+ (hidden-package
+ (package
+ (name "go-github-com-go-delve-liner")
+ (version "1.2.3-0.20231231155935-4726ab1d7f62")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/go-delve/liner")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0f94qx7jzign64gv865whirq9xw7rakxf3wy4y9fsn52bxx408x0"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/go-delve/liner"))
+ (propagated-inputs
+ (list go-github-com-mattn-go-runewidth
+ go-golang-org-x-sys))
+ (home-page "https://github.com/go-delve/liner")
+ (synopsis "Command line editor Go library")
+ (description
+ "This package is an alternative fork of https://github.com/peterh/liner
+to build @code{delve} - debugger for the Go programming language.")
+ (license license:expat))))
+
(define-public go-github-com-go-errors-errors
(package
(name "go-github-com-go-errors-errors")
@@ -12279,6 +12398,35 @@ representation suitable for computing diffs.")
@end itemize")
(license license:expat)))
+(define-public go-github-com-landlock-lsm-go-landlock
+ (package
+ (name "go-github-com-landlock-lsm-go-landlock")
+ (version "0.0.0-20250303204525-1544bccde3a3")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/landlock-lsm/go-landlock")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "00qis8gg2ajyph9jyrjghm6cn0h22pwjwdp6qa22ji6jslgnm02n"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/landlock-lsm/go-landlock"))
+ (propagated-inputs
+ (list go-golang-org-x-sys
+ go-kernel-org-pub-linux-libs-security-libcap-psx))
+ (home-page "https://landlock.io/")
+ (synopsis "Golang library for the Linux Landlock sandboxing feature")
+ (description
+ "This package implements a restriction for the current processes' ability
+to use files, using Linux 5.13's
+@url{https://docs.kernel.org/security/landlock.html, Landlock} feature.")
+ (license license:expat)))
+
(define-public go-github-com-lann-builder
(package
(name "go-github-com-lann-builder")
@@ -21790,9 +21938,9 @@ when they'd prefer a more familiar, loosely typed API.")
(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/uber-go/zap")
- (commit (go-version->git-ref version
- #:subdir "exp"))))
+ (url "https://github.com/uber-go/zap")
+ (commit (go-version->git-ref version
+ #:subdir "exp"))))
(file-name (git-file-name name version))
(sha256
(base32 "05i15278swdmpif3p6g18sy0sn7rnfdl3m2rj5p30cnyb0j29vig"))
@@ -21805,18 +21953,11 @@ when they'd prefer a more familiar, loosely typed API.")
;; Consider to implement it as re-usable procedure in
;; guix/build/utils or guix/build-system/go.
(define (delete-all-but directory . preserve)
- (define (directory? x)
- (and=> (stat x #f)
- (compose (cut eq? 'directory <>) stat:type)))
(with-directory-excursion directory
- (let* ((pred
- (negate (cut member <> (append '("." "..") preserve))))
+ (let* ((pred (negate (cut member <>
+ (cons* "." ".." preserve))))
(items (scandir "." pred)))
- (for-each (lambda (item)
- (if (directory? item)
- (delete-file-recursively item)
- (delete-file item)))
- items))))
+ (for-each (cut delete-file-recursively <>) items))))
(delete-all-but "." "exp")))))
(build-system go-build-system)
(arguments
@@ -22586,6 +22727,33 @@ kubernetes-independent packages supplementing the
@url{https://pkg.go.dev/std#stdlib,Go standard libs}.")
(license license:asl2.0)))
+(define-public go-kernel-org-pub-linux-libs-security-libcap-psx
+ (package
+ (name "go-kernel-org-pub-linux-libs-security-libcap-psx")
+ (version "1.2.76")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.kernel.org/pub/scm/libs/libcap/libcap.git")
+ (commit (go-version->git-ref version
+ #:subdir "psx"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0va0bkq5kxf0ccsdpw598vsmk4kdzhaafjvym0g5b2n49c5sn59b"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "kernel.org/pub/linux/libs/security/libcap/psx"
+ #:unpack-path "kernel.org/pub/linux/libs/security/libcap"))
+ ;; Redirects from <https://kernel.org/pub/linux/libs/security/libcap>
+ (home-page "https://sites.google.com/site/fullycapable")
+ (synopsis "API for invoking Linux system calls in Golang")
+ (description
+ "This package provides a support for system calls that are run
+simultaneously on all threads under Linux.")
+ (license license:gpl2)))
+
(define-public go-maunium-net-go-mauflag
(package
(name "go-maunium-net-go-mauflag")
@@ -23325,38 +23493,6 @@ library.")
" This package provides an command line interface (CLI)
tool."))))
-(define-public go-connectrpc-com-connect
- (package
- (name "go-connectrpc-com-connect")
- (version "1.18.1")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/connectrpc/connect-go")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "0a6rzp57srhyf66jri62gfsj4ndpfxgb9ln15qdpfwv0xvcffz63"))))
- (build-system go-build-system)
- (arguments
- (list
- #:import-path "connectrpc.com/connect"
- ;; Needs additional dependencies..
- #:tests? #f))
- (propagated-inputs (list go-google-golang-org-protobuf
- go-golang-org-x-net
- go-github-com-google-go-cmp))
- (home-page "https://connectrpc.com/connect")
- (synopsis "@acronym{RPC, Remote procedure call} framework built on
-Protocol Buffers")
- (description
- "Package @code{connect} is a slim RPC framework built on Protocol Buffers
-and @code{net/http}. In addition to supporting its own protocol, Connect
-handlers and clients are wire-compatible with gRPC and gRPC-Web, including
-streaming.")
- (license license:asl2.0)))
-
(define-public go-csv2table
(package/inherit go-github-com-olekukonko-tablewriter
(name "go-csv2table")