aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAdam Kandur <kefironpremise@gmail.com>2022-09-26 21:43:45 +0300
committerChristopher Baines <mail@cbaines.net>2022-10-13 12:28:15 +0100
commitbf59d83699480d644716e7ec411c34c8f6792a58 (patch)
treee5d3176af6d1b5e85fe297518bc8e251b7ec6036 /gnu
parent33f56db65498b75ad0a55b780ce501d2b3532044 (diff)
downloadguix-bf59d83699480d644716e7ec411c34c8f6792a58.tar.gz
guix-bf59d83699480d644716e7ec411c34c8f6792a58.zip
gnu: Add go-github-com-savsgio-gotils.
* gnu/packages/golang.scm (go-github-com-savsgio-gotils): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/golang.scm77
1 files changed, 77 insertions, 0 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 767f2dcd7f..1e37732d10 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1261,6 +1261,83 @@ proxy protocol.")
configuration file.")
(license license:isc)))
+(define-public go-github-com-savsgio-gotils
+ (let ((commit "52f3993e8d6d2629f18e7b7383b7f54a3d3f1d1f")
+ (revision "0"))
+ (package
+ (name "go-github-com-savsgio-gotils")
+ (version (git-version "0.0.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/savsgio/gotils")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0qr7i62h53frcig26vj027r2hn9zxsjzd7113wvbxy7qpprjjbjb"))))
+ (build-system go-build-system)
+ (native-inputs
+ (list go-github-com-google-uuid
+ go-github-com-valyala-bytebufferpool))
+ (arguments
+ '(#:import-path "github.com/savsgio/gotils"
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'build
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'build)
+ `(,@arguments #:import-path ,directory)))
+ (list
+ "github.com/savsgio/gotils/bytes"
+ "github.com/savsgio/gotils/encoding/base64"
+ "github.com/savsgio/gotils/math"
+ "github.com/savsgio/gotils/nocopy"
+ "github.com/savsgio/gotils/strconv"
+ "github.com/savsgio/gotils/strings"
+ "github.com/savsgio/gotils/sync"
+ "github.com/savsgio/gotils/time"
+ "github.com/savsgio/gotils/uuid"))))
+ (replace 'check
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'check)
+ `(,@arguments #:import-path ,directory)))
+ (list
+ "github.com/savsgio/gotils/bytes"
+ "github.com/savsgio/gotils/encoding/base64"
+ "github.com/savsgio/gotils/math"
+ "github.com/savsgio/gotils/nocopy"
+ "github.com/savsgio/gotils/strconv"
+ "github.com/savsgio/gotils/strings"
+ "github.com/savsgio/gotils/sync"
+ "github.com/savsgio/gotils/time"
+ "github.com/savsgio/gotils/uuid"))))
+ (replace 'install
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'install)
+ `(,@arguments #:import-path ,directory)))
+ (list
+ "github.com/savsgio/gotils/bytes"
+ "github.com/savsgio/gotils/encoding/base64"
+ "github.com/savsgio/gotils/math"
+ "github.com/savsgio/gotils/nocopy"
+ "github.com/savsgio/gotils/strconv"
+ "github.com/savsgio/gotils/strings"
+ "github.com/savsgio/gotils/sync"
+ "github.com/savsgio/gotils/time"
+ "github.com/savsgio/gotils/uuid")))))))
+ (home-page "https://github.com/savsgio/gotils")
+ (synopsis "Golang utlities")
+ (description
+ "Golang utlities to make your life easier with zero allocations.")
+ (license license:asl2.0))))
+
(define-public go-github-com-riobard-go-bloom
(let ((commit "cdc8013cb5b3eb0efebec85f0e904efccac42df9")
(revision "0"))