GNU bug report logs - #58099
[PATCH] gnu: Add go-github-com-savsgio-gotils.

Previous Next

Package: guix-patches;

Reported by: Adam Kandur <kefironpremise <at> gmail.com>

Date: Mon, 26 Sep 2022 18:45:01 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58099 in the body.
You can then email your comments to 58099 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#58099; Package guix-patches. (Mon, 26 Sep 2022 18:45:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Adam Kandur <kefironpremise <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 26 Sep 2022 18:45:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Adam Kandur <kefironpremise <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Adam Kandur <kefironpremise <at> gmail.com>
Subject: [PATCH] gnu: Add go-github-com-savsgio-gotils.
Date: Mon, 26 Sep 2022 21:43:45 +0300
* gnu/packages/golang.scm (go-github-com-savsgio-gotils): New variable.
---
 gnu/packages/golang.scm | 77 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 29a11a4..af6a66a 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -1215,6 +1215,83 @@ (define-public go-github-com-schachmat-ingo
 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"))
-- 
2.36.1





Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Thu, 13 Oct 2022 11:44:02 GMT) Full text and rfc822 format available.

Notification sent to Adam Kandur <kefironpremise <at> gmail.com>:
bug acknowledged by developer. (Thu, 13 Oct 2022 11:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 58099-done <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Adam Kandur <kefironpremise <at> gmail.com>
Cc: 58099-done <at> debbugs.gnu.org
Subject: Re: [bug#58099] [PATCH] gnu: Add go-github-com-savsgio-gotils.
Date: Thu, 13 Oct 2022 12:40:17 +0100
[Message part 1 (text/plain, inline)]
Adam Kandur <kefironpremise <at> gmail.com> writes:

> * gnu/packages/golang.scm (go-github-com-savsgio-gotils): New variable.
> ---
>  gnu/packages/golang.scm | 77 +++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 77 insertions(+)

Its a good idea to run guix lint on packages before you submit
patches. On this patch, it raised some issues with using tabs in
particular.

I've gone ahead and fixed those and pushed this patch as
10d429f2fce321d8285684503094694ec3979865.

Thanks,

Chris
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Nov 2022 12:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 160 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.