From 66cb568e311c88891de9c27bcb0f3eb658af6ae3 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 17 Aug 2021 08:50:41 +0300 Subject: gnu: Add go-github-com-oneofone-xxhash. * gnu/packages/golang.scm (go-github-com-oneofone-xxhash): New variable. Signed-off-by: Arun Isaac --- gnu/packages/golang.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f4cd30c662..490872e886 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2021 Sarah Morgensen ;;; Copyright © 2021 Raghav Gururajan ;;; Copyright © 2021 jgart +;;; Copyright © 2021 Bonface Munyoki Kilyungi ;;; ;;; This file is part of GNU Guix. ;;; @@ -8396,3 +8397,27 @@ (define-public go-github-com-klauspost-compress (synopsis "Go compression library") (description "@code{compress} provides various compression algorithms.") (license license:bsd-3))) + +(define-public go-github-com-oneofone-xxhash + (package + (name "go-github-com-oneofone-xxhash") + (version "1.2.8") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/OneOfOne/xxhash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0f98qk83l2fhpclvrgyxsa9b8m4pipf11fah85bnjl01wy4lvybw")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/OneOfOne/xxhash")) + (home-page "https://github.com/OneOfOne/xxhash") + (synopsis "Go implementation of xxHash") + (description "This is a native Go implementation of the +@url{https://github.com/Cyan4973/xxHash, xxHash} algorithm, an extremely fast +non-cryptographic hash algorithm, working at speeds close to RAM limits.") + (license license:asl2.0))) -- cgit v1.2.3 From 5fbeb09f911fb04dbce43282e27fce9d04d6b9b9 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Tue, 17 Aug 2021 08:50:42 +0300 Subject: gnu: Add go-github-com-aswinkarthik-csvdiff. * gnu/packages/golang.scm (go-github-com-aswinkarthik-csvdiff): New variable. Signed-off-by: Arun Isaac --- gnu/packages/golang.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 490872e886..72579d6bd2 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8421,3 +8421,47 @@ (define-public go-github-com-oneofone-xxhash @url{https://github.com/Cyan4973/xxHash, xxHash} algorithm, an extremely fast non-cryptographic hash algorithm, working at speeds close to RAM limits.") (license license:asl2.0))) + +(define-public go-github-com-aswinkarthik-csvdiff + (package + (name "go-github-com-aswinkarthik-csvdiff") + (version "1.4.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aswinkarthik/csvdiff") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0cd1ikxsypjqisfnmr7zix3g7x8p892w77086465chyd39gpk97b")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/aswinkarthik/csvdiff")) + (propagated-inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys) + ("go-github-com-stretchr-testify" ,go-github-com-stretchr-testify) + ("go-github-com-spf13-cobra" ,go-github-com-spf13-cobra) + ("go-github-com-spf13-afero" ,go-github-com-spf13-afero) + ("go-github-com-spaolacci-murmur3" ,go-github-com-spaolacci-murmur3) + ("go-github-com-mattn-go-colorable" ,go-github-com-mattn-go-colorable) + ("go-github-com-fatih-color" ,go-github-com-fatih-color) + ("go-github-com-cespare-xxhash" ,go-github-com-cespare-xxhash) + ("go-github-com-oneofone-xxhash" ,go-github-com-oneofone-xxhash))) + (home-page "https://github.com/aswinkarthik/csvdiff") + (synopsis "Fast diff tool for comparing CSV files") + (description "@code{csvdiff} is a diff tool to compute changes between two +CSV files. It can compare CSV files with a million records in under 2 +seconds. It is specifically suited for comparing CSV files dumped from +database tables. GNU Diff is orders of magnitude faster for comparing line by +line. @code{csvdiff} supports + +@itemize +@item Selective comparison of fields in a row +@item Specifying group of columns as primary-key to uniquely identify a row +@item Ignoring columns +@item Several output formats including colored git style output or +JSON for post-processing +@end itemize") + (license license:expat))) -- cgit v1.2.3 From ff80e775dcea56be4d234b96e3b234364b435547 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 30 Aug 2021 14:54:11 -0400 Subject: gnu: go-github-com-gdamore-tcell: Correct license to Apache 2.0. * gnu/packages/golang.scm (go-github-com-gdamore-tcell) [license]: Correct from Expat to Apache 2.0. --- gnu/packages/golang.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 72579d6bd2..aed7025f51 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5255,7 +5255,7 @@ (define-public go-github-com-gdamore-tcell terminfo capability strings to avoid hard-coding escape strings for formatting. It also favors portability, and includes support for all POSIX systems.") - (license license:expat)))) + (license license:asl2.0)))) (define-public go-github-com-mattn-go-shellwords (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2") -- cgit v1.2.3 From cc71a54e9f900e905192f794c7bc5346c445e651 Mon Sep 17 00:00:00 2001 From: Guix Together Date: Mon, 30 Aug 2021 12:40:38 -0400 Subject: gnu: Add go-github-com-gdamore-tcell-v2. * gnu/packages/golang.scm (go-github-com-gdamore-tcell-v2): New variable. Co-authored-by: Arun Isaac Co-authored-by: Brice Waegeneire Co-authored-by: jgart Co-authored-by: Julien Lepiller Signed-off-by: Maxim Cournoyer --- gnu/packages/golang.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index aed7025f51..b6e8b84749 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5257,6 +5257,37 @@ (define-public go-github-com-gdamore-tcell systems.") (license license:asl2.0)))) +(define-public go-github-com-gdamore-tcell-v2 + (package + (inherit go-github-com-gdamore-tcell) + (name "go-github-com-gdamore-tcell") + (version "2.3.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gdamore/tcell") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ypbl5080q9sd3irad8mv7zlg4242i8pmg5xyhbyq95kymwibaid")))) + (arguments + `(#:import-path "github.com/gdamore/tcell/v2" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'make-files-writable + (lambda* (#:key outputs #:allow-other-keys) + ;; Make sure .gz files are writable so that the + ;; 'reset-gzip-timestamps' phase can do its work. + (let ((out (assoc-ref outputs "out"))) + (for-each make-file-writable + (find-files out "\\.gz$")))))))) + (propagated-inputs + `(("go-golang-org-x-term" ,go-golang-org-x-term) + ("go-golang-org-x-sys" ,go-golang-org-x-sys) + ,@(package-inputs go-github-com-gdamore-tcell))))) + (define-public go-github-com-mattn-go-shellwords (let ((commit "2444a32a19f450fabaa0bb3e96a703f15d9a97d2") (version "1.0.5") -- cgit v1.2.3