From 8a37b4506481b5c41d80550828e8f03f738a2516 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Tue, 20 Apr 2021 23:37:31 -0700 Subject: gnu: go-github-com-mesilliac-pulse-simple: Fix typo. * gnu/packages/golang.scm (go-github-com-mesilliac-pulse-simple)[description]: Fix typo "This package". --- 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 6502740220..9e0175e15a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6837,7 +6837,7 @@ (define-public go-github-com-mesilliac-pulse-simple (home-page "https://github.com/mesilliac/pulse-simple") (synopsis "Cgo bindings to PulseAudio's Simple API") (description - "This packages provides Cgo bindings to PulseAudio's Simple API, to play + "This package provides Cgo bindings to PulseAudio's Simple API, to play or capture raw audio.") (license license:expat)))) -- cgit v1.2.3 From 58f4b49a52f983cdcd5fba4cb2c9574915ae624e Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 4 May 2021 20:42:57 +0200 Subject: gnu: go-gopkg-in-go-playground-assert-v1: Fix typo in description. * gnu/packages/golang.scm (go-gopkg-in-go-playground-assert-v1) [description]: Fix typo. --- 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 9e0175e15a..8c3c81ceda 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -656,7 +656,7 @@ (define-public go-gopkg-in-go-playground-assert-v1 '(#:import-path "gopkg.in/go-playground/assert.v1")) (synopsis "Basic assertion library used alongside native Go testing") (description - "This package provides bassic assertions along with building blocks for + "This package provides basic assertions along with building blocks for custom assertions to be used alongside native Go testing.") (license license:expat))) -- cgit v1.2.3 From 17972082ccb05cce550bc095d23bd6dcaf3ec5a7 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 18 Jun 2021 20:27:27 +0100 Subject: gnu: Add gopkg.in/yaml.v3. * gnu/packages/golang.scm (go-gopkg-in-yml-v3): New variable Signed-off-by: Nicolas Goaziou --- gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8c3c81ceda..1d17f02cdd 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -25,6 +25,7 @@ ;;; Copyright © 2020 Martin Becze ;;; Copyright © 2021 Ricardo Wurmus ;;; Copyright © 2021 Guillaume Le Vaillant +;;; Copyright © 2021 Sharlatan Hellseher ;;; ;;; This file is part of GNU Guix. ;;; @@ -2413,6 +2414,32 @@ (define-public go-gopkg-in-yaml-v2 values.") (license license:asl2.0))) +(define-public go-gopkg-in-yaml-v3 + (package + (name "go-gopkg-in-yaml-v3") + (version "3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gopkg.in/yaml.v3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "06f4lnrp494wqaygv09dggr2dwf3z2bawqhnlnnwiamg5y787k4g")))) + (build-system go-build-system) + (arguments + '(#:import-path "gopkg.in/yaml.v3")) + (native-inputs + `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1))) + (home-page "https://gopkg.in/yaml.v3") + (synopsis "YAML reader and writer for the Go language") + (description + "This package provides a Go library for encode and decode YAML values. +The yaml package supports most of YAML 1.2, but preserves some behavior from +1.1 for backwards compatibility.") + (license license:asl2.0))) + (define-public go-github-com-mattn-go-isatty (package (name "go-github-com-mattn-go-isatty") -- cgit v1.2.3 From e3e4cbb93fb4a7085eea089ed633083c95c77a32 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:21:06 -0700 Subject: gnu: Add go-1.16. Add go@1.16 as a non-default go. Changes from 1.14: Use now-supported GO_LDSO configuration option for setting the interpreter. Bootstrap with gccgo on platforms which do not support go-1.4. Fix and re-enable cmd/go script tests. Fix typo in cgoldflags patch. Break out tests into "check" phase. Remove references to perl to reduce closure size by ~10%. Set GOCACHE so go doesn't attempt to access $HOME. * gnu/packages/patches/go-fix-script-tests.patch: New file. * local.mk (dist_patch_DATA): Register it. * gnu/packages/golang.scm (go-1.16): New variable. Use the patch. Signed-off-by: Efraim Flashner --- gnu/local.mk | 1 + gnu/packages/golang.scm | 159 +++++++++++++++++++++++++ gnu/packages/patches/go-fix-script-tests.patch | 18 +++ 3 files changed, 178 insertions(+) create mode 100644 gnu/packages/patches/go-fix-script-tests.patch (limited to 'gnu/packages/golang.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 7d1fc8157c..6b9202cba1 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1169,6 +1169,7 @@ dist_patch_DATA = \ %D%/packages/patches/gobject-introspection-absolute-shlib-path.patch \ %D%/packages/patches/gobject-introspection-cc.patch \ %D%/packages/patches/gobject-introspection-girepository.patch \ + %D%/packages/patches/go-fix-script-tests.patch \ %D%/packages/patches/go-skip-gc-test.patch \ %D%/packages/patches/gpm-glibc-2.26.patch \ %D%/packages/patches/gpodder-disable-updater.patch \ diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1d17f02cdd..aedb5d4f69 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2021 Ricardo Wurmus ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Sharlatan Hellseher +;;; Copyright © 2021 Sarah Morgensen ;;; ;;; This file is part of GNU Guix. ;;; @@ -45,6 +46,7 @@ (define-module (gnu packages golang) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) + #:use-module ((guix build utils) #:select (alist-replace)) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix packages) @@ -54,6 +56,7 @@ (define-module (gnu packages golang) #:use-module (gnu packages) #:use-module (gnu packages admin) #:use-module (gnu packages base) + #:use-module ((gnu packages bootstrap) #:select (glibc-dynamic-linker)) #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages lua) @@ -441,6 +444,162 @@ (define-public go-1.14 ,@(package-native-inputs go-1.4))) (supported-systems %supported-systems))) +(define-public go-1.16 + (package + (inherit go-1.14) + (name "go") + (version "1.16.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/go") + (commit (string-append "go" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "19a93p217h5xi2sgh34qzv24pkd4df0sw4fc5z6k47lspjp3vx2l")))) + (arguments + (substitute-keyword-arguments (package-arguments go-1.14) + ((#:tests? _) #t) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'remove-unused-sourcecode-generators + (lambda _ + ;; Prevent perl from inclusion in closure through unused files + (for-each delete-file (find-files "src" "\\.pl$")))) + (replace 'prebuild + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) + (net-base (assoc-ref inputs "net-base")) + (tzdata-path + (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))) + + ;; Having the patch in the 'patches' field of breaks + ;; the 'TestServeContent' test due to the fact that + ;; timestamps are reset. Thus, apply it from here. + (invoke "patch" "-p2" "--force" "-i" + (assoc-ref inputs "go-skip-gc-test.patch")) + (invoke "patch" "-p2" "--force" "-i" + (assoc-ref inputs "go-fix-script-tests.patch")) + + (for-each make-file-writable (find-files ".")) + + (substitute* "os/os_test.go" + (("/usr/bin") (getcwd)) + (("/bin/sh") (which "sh"))) + + (substitute* "cmd/go/testdata/script/cgo_path_space.txt" + (("/bin/sh") (which "sh"))) + + ;; Add libgcc to runpath + (substitute* "cmd/link/internal/ld/lib.go" + (("!rpath.set") "true")) + (substitute* "cmd/go/internal/work/gccgo.go" + (("cgoldflags := \\[\\]string\\{\\}") + (string-append "cgoldflags := []string{" + "\"-Wl,-rpath=" gcclib "\"" + "}")) + (("\"-lgcc_s\", ") + (string-append + "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", "))) + (substitute* "cmd/go/internal/work/gc.go" + (("ldflags = setextld\\(ldflags, compiler\\)") + (string-append + "ldflags = setextld(ldflags, compiler)\n" + "ldflags = append(ldflags, \"-r\")\n" + "ldflags = append(ldflags, \"" gcclib "\")\n"))) + + ;; Disable failing tests: these tests attempt to access + ;; commands or network resources which are neither available + ;; nor necessary for the build to succeed. + (for-each + (match-lambda + ((file regex) + (substitute* file + ((regex all before test_name) + (string-append before "Disabled" test_name))))) + '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") + ("net/dial_test.go" "(.+)(TestDialTimeout.+)") + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)") + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)") + ;; 127.0.0.1 doesn't exist + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)") + ;; 127.0.0.1 doesn't exist + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)") + ;; /etc/services doesn't exist + ("net/parse_test.go" "(.+)(TestReadLine.+)") + ("os/os_test.go" "(.+)(TestHostname.+)") + ;; The user's directory doesn't exist + ("os/os_test.go" "(.+)(TestUserHomeDir.+)") + ("time/format_test.go" "(.+)(TestParseInSydney.+)") + ("time/format_test.go" "(.+)(TestParseInLocation.+)") + ("os/exec/exec_test.go" "(.+)(TestEcho.+)") + ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") + ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") + ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") + ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") + ("os/exec/exec_test.go" "(.+)(TestPipes.+)") + ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") + ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)") + ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)") + ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)") + ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)") + ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)") + ("net/lookup_test.go" "(.+)(TestLookupPort.+)") + ("syscall/exec_linux_test.go" + "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)"))) + + ;; These tests fail on aarch64-linux + (substitute* "cmd/dist/test.go" + (("t.registerHostTest\\(\"testsanitizers/msan.*") "")) + + ;; fix shebang for testar script + ;; note the target script is generated at build time. + (substitute* "../misc/cgo/testcarchive/carchive_test.go" + (("#!/usr/bin/env") (string-append "#!" (which "env")))) + + (substitute* "net/lookup_unix.go" + (("/etc/protocols") (string-append net-base "/etc/protocols"))) + (substitute* "net/port_unix.go" + (("/etc/services") (string-append net-base "/etc/services"))) + (substitute* "time/zoneinfo_unix.go" + (("/usr/share/zoneinfo/") tzdata-path))))) + (replace 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; FIXME: Some of the .a files are not bit-reproducible. + ;; (Is this still true?) + (let* ((output (assoc-ref outputs "out")) + (loader (string-append (assoc-ref inputs "libc") + ,(glibc-dynamic-linker)))) + (setenv "CC" (which "gcc")) + (setenv "GO_LDSO" loader) + (setenv "GOOS" "linux") + (setenv "GOROOT" (dirname (getcwd))) + (setenv "GOROOT_FINAL" output) + (setenv "GOCACHE" "/tmp/go-cache") + (invoke "sh" "make.bash" "--no-banner")))) + (replace 'check + (lambda* (#:key target (tests? (not target)) (parallel-tests? #t) + #:allow-other-keys) + (let* ((njobs (if parallel-tests? (parallel-job-count) 1))) + (when tests? + (setenv "GOMAXPROCS" (number->string njobs)) + (invoke "sh" "run.bash" "--no-rebuild"))))) + (add-before 'install 'unpatch-perl-shebangs + (lambda _ + ;; Rewrite references to perl input in test scripts + (substitute* "net/http/cgi/testdata/test.cgi" + (("^#!.*") "#!/usr/bin/env perl\n")))))))) + (native-inputs + `(("go-fix-script-tests.patch" ,(search-patch "go-fix-script-tests.patch")) + ,@(if (not (member (%current-system) (package-supported-systems go-1.4))) + (alist-replace "go" (list gccgo-10) (package-native-inputs go-1.14)) + (package-native-inputs go-1.14)))))) + (define-public go go-1.14) (define-public go-github-com-alsm-ioprogress diff --git a/gnu/packages/patches/go-fix-script-tests.patch b/gnu/packages/patches/go-fix-script-tests.patch new file mode 100644 index 0000000000..b29e83fef0 --- /dev/null +++ b/gnu/packages/patches/go-fix-script-tests.patch @@ -0,0 +1,18 @@ +Make library/header paths visible to cmd/go script tests, which is necessary for +cgo/gccgo tests to work correctly + +diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go +index dfaa40548e..9d0f0e9bcd 100644 +--- a/src/cmd/go/script_test.go ++++ b/src/cmd/go/script_test.go +@@ -100,6 +100,10 @@ const ( + var extraEnvKeys = []string{ + "SYSTEMROOT", // must be preserved on Windows to find DLLs; golang.org/issue/25210 + "WINDIR", // must be preserved on Windows to be able to run PowerShell command; golang.org/issue/30711 ++ "CPATH", ++ "C_INCLUDE_PATH", ++ "CPLUS_INCLUDE_PATH", ++ "LIBRARY_PATH", + "LD_LIBRARY_PATH", // must be preserved on Unix systems to find shared libraries + "CC", // don't lose user settings when invoking cgo + "GO_TESTING_GOTOOLS", // for gccgo testing -- cgit v1.2.3 From 8dc33b00dbd27cc0dfb8ab2ec253e323948bf7df Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 3 Jul 2021 06:08:22 +0200 Subject: gnu: Add go-github-com-mitchellh-go-wordwrap. * gnu/packages/golang.scm (go-github-com-mitchellh-go-wordwrap): New public variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index aedb5d4f69..8247b09ea5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -673,6 +673,32 @@ (define-public go-github-com-golangplus-fmt (description "This package provides additions to Go's stdlib @code{fmt}.") (license license:bsd-3))) +(define-public go-github-com-mitchellh-go-wordwrap + (package + (name "go-github-com-mitchellh-go-wordwrap") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mitchellh/go-wordwrap") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "12imq66hgj8q9ii2xqdy8apc0icphh6yimjb0div1pvl3s9gn83y")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/mitchellh/go-wordwrap")) + (propagated-inputs + `(("go-gopkg-in-yaml-v2" ,go-gopkg-in-yaml-v2))) + (home-page "https://github.com/mitchellh/go-wordwrap") + (synopsis "Go library for word-wrapping strings") + (description + "This Go library automatically wraps words onto multiple lines. It's +primary goal is to format command-line output, but of course word wrapping is a +generally useful thing to do.") + (license license:expat))) + (define-public go-github-com-motemen-go-colorine (let ((commit "45d19169413a019e4e2be69629dde5c7d92f8706") (revision "0")) -- cgit v1.2.3 From c43e1e0f9bc33dfde51c36e131edefe56162b97f Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sat, 3 Jul 2021 02:29:55 +0200 Subject: gnu: Add go-github-com-gizak-termui. * gnu/packages/golang.scm (go-github-com-gizak-termui): New public variable. --- gnu/packages/golang.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8247b09ea5..0318918a37 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -65,6 +65,7 @@ (define-module (gnu packages golang) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages terminals) #:use-module (gnu packages textutils) #:use-module (gnu packages tls) #:use-module (gnu packages web) @@ -653,6 +654,41 @@ (define-public go-github-com-aki237-nscjar (home-page "https://github.com/aki237/nscjar") (license license:expat)))) +(define-public go-github-com-gizak-termui + (package + (name "go-github-com-gizak-termui") + (version "3.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gizak/termui") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1v3k8l5p95kb1v297ra5mw9sxdd59y82y6ibjzya5ma2pry6k5cn")))) + (build-system go-build-system) + (arguments + '(#:unpack-path "github.com/gizak/termui" + #:import-path "github.com/gizak/termui/v3")) + (propagated-inputs + `(("go-github.com-mattn-go-runewidth" ,go-github.com-mattn-go-runewidth) + ("go-github-com-mitchellh-go-wordwrap" + ,go-github-com-mitchellh-go-wordwrap) + ("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go))) + (home-page "https://github.com/gizak/termui") + (synopsis "Terminal dashboard widget Go library") + (description + "The termui Go library draws customizable dashboard widgets in a text +terminal. It includes several common widgets: lists, trees, tables and tabs, +but also more complex items such as (stacked) bar and pie charts, scatter plots, +gauges, and even images and a canvas for drawing `high resolution' braille dots. + +You can also easily create new custom widgets. Widgets can be coloured and +styled and positioned absolutely or relatively. They respond to keyboard, +mouse, and terminal resizing events.") + (license license:expat))) + (define-public go-github-com-golangplus-fmt (package (name "go-github-com-golangplus-fmt") -- cgit v1.2.3 From d03fa9aa926266fcc4652a6ce14b47f2887815a5 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 22 May 2021 19:15:06 -0400 Subject: gnu: Add go-github-com-rakyll-statik. * gnu/packages/golang.scm (go-github-com-rakyll-statik): New variable. Co-authored-by: jgart --- 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 0318918a37..6622302a71 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -27,6 +27,8 @@ ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Sharlatan Hellseher ;;; Copyright © 2021 Sarah Morgensen +;;; Copyright © 2021 Raghav Gururajan +;;; Copyright © 2021 jgart ;;; ;;; This file is part of GNU Guix. ;;; @@ -72,6 +74,29 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-rakyll-statik + (package + (name "go-github-com-rakyll-statik") + (version "0.1.7") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/rakyll/statik") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0y0kbzma55vmyqhyrw9ssgvxn6nw7d0zg72a7nz8vp1zly4hs6va")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/rakyll/statik")) + (home-page "https://github.com/rakyll/statik/") + (synopsis "Embed files into a Go executable") + (description "Statik allows you to embed a directory of static files into +your Go binary to be later served from an http.FileSystem.") + (license license:asl2.0))) + ;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a ;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2 ;; implementation, and gccgo-5 a complete implementation of go-1.4. Ultimately -- cgit v1.2.3 From 8d52b4e0e1d6291076eae752c135155a427abc76 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 22 May 2021 20:08:11 -0400 Subject: gnu: Add go-github-com-dchest-siphash. * gnu/packages/golang.scm (go-github-com-dchest-siphash): New variable. Co-authored-by: jgart --- gnu/packages/golang.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6622302a71..847078a704 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,29 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-dchest-siphash + (package + (name "go-github-com-dchest-siphash") + (version "1.2.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/dchest/siphash") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08s076y7vmjqnq7jz0762hkm896r6r31v8b31a3gy0n8rfa01k8k")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/dchest/siphash")) + (home-page "https://github.com/dchest/siphash") + (synopsis "Go library for pseudorandom functions") + (description "SipHash is a family of pseudorandom functions (PRFs) optimized +for speed on short messages.") + (license license:cc0))) + (define-public go-github-com-rakyll-statik (package (name "go-github-com-rakyll-statik") -- cgit v1.2.3 From 53e8f46a2d8067a0b86854772af50bf06d483909 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 22 May 2021 20:19:39 -0400 Subject: gnu: Add go-github-com-emersion-go-autostart. * gnu/packages/golang.scm (go-github-com-emersion-go-autostart): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 847078a704..a2ba6f7f31 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,30 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-emersion-go-autostart + (let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c") + (revision "0")) + (package + (name "go-github-com-emersion-go-autostart") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/emersion/go-autostart") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0cqqvbzn32xv5lknfygrx01rx2sc6pi833k7008nlk9lsfgry06v")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/emersion/go-autostart")) + (home-page "https://github.com/emersion/go-autostart") + (synopsis "Autostart library in Go") + (description "Go-Autostart is a Go library to run a command after login.") + (license license:expat)))) + (define-public go-github-com-dchest-siphash (package (name "go-github-com-dchest-siphash") -- cgit v1.2.3 From fb138d367c7ba5b22efc28ce60a8e103250b808a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 22 May 2021 22:41:48 -0400 Subject: gnu: Add go-github-com-apparentlymart-go-openvpn-mgmt. * gnu/packages/golang.scm (go-github-com-apparentlymart-go-openvpn-mgmt): New variable. --- gnu/packages/golang.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a2ba6f7f31..a531715ab9 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,61 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-apparentlymart-go-openvpn-mgmt + (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") + (revision "0")) + (package + (name "go-github-com-apparentlymart-go-openvpn-mgmt") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/apparentlymart/go-openvpn-mgmt") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dn431jnswg5ns1ah10wswnw6wiv48zq21zr5xp1178l4waswj7k")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/apparentlymart/go-openvpn-mgmt" + #: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/apparentlymart/go-openvpn-mgmt/demux" + "github.com/apparentlymart/go-openvpn-mgmt/openvpn")))) + (replace 'check + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'check) + `(,@arguments #:import-path ,directory))) + (list + "github.com/apparentlymart/go-openvpn-mgmt/demux" + "github.com/apparentlymart/go-openvpn-mgmt/openvpn")))) + (replace 'install + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,directory))) + (list + "github.com/apparentlymart/go-openvpn-mgmt/demux" + "github.com/apparentlymart/go-openvpn-mgmt/openvpn"))))))) + (home-page "https://github.com/apparentlymart/go-openvpn-mgmt") + (synopsis "Go client library for OpenVPN's management protocol") + (description "Go-OpenVPN-Mgmt implements a client for the OpenVPN +management interface. It can be used to monitor and control an OpenVPN process +running with its management port enabled.") + (license license:expat)))) + (define-public go-github-com-emersion-go-autostart (let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c") (revision "0")) -- cgit v1.2.3 From 24487f2ddc2e2a4cc1bd6062d1eb10ec518fcaa2 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sat, 22 May 2021 23:39:55 -0400 Subject: gnu: Add go-github-com-keybase-go-ps. * gnu/packages/golang.scm (go-github-com-keybase-go-ps): New variable. --- gnu/packages/golang.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a531715ab9..ad90ac4473 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,44 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-keybase-go-ps + (let ((commit "91aafc93ba19d1988cff338c1929d35b6c6f5b50") + (revision "0")) + (package + (name "go-github-com-keybase-go-ps") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/keybase/go-ps") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1la7m9pd1rrij727g34k9d2iapqwrkwdkqwpkbsbcq8ig0fg634h")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/keybase/go-ps" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (substitute* (find-files "." "test\\.go") + (("/bin/sleep" command) + (string-append + (assoc-ref (or native-inputs inputs) "coreutils") + command)))))))) + (native-inputs + `(("coreutils" ,coreutils) + ("go-github-com-stretchr-testify" + ,go-github-com-stretchr-testify))) + (home-page "https://github.com/keybase/go-ps") + (synopsis "Process list library for Go") + (description "Go-Ps is a library for Go that implements OS-specific APIs +to list and manipulate processes in a safe way.") + (license license:expat)))) + (define-public go-github-com-apparentlymart-go-openvpn-mgmt (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") (revision "0")) -- cgit v1.2.3 From 520eaa48af80e35b00e6e01173a912b0becc5684 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 23 May 2021 18:49:03 -0400 Subject: gnu: Add go-github-com-sevlyar-go-daemon. * gnu/packages/golang.scm (go-github-com-sevlyar-go-daemon): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ad90ac4473..2445a51689 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,30 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-sevlyar-go-daemon + (package + (name "go-github-com-sevlyar-go-daemon") + (version "0.1.5") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/sevlyar/go-daemon") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1y3gnxaifykcjcbzx91lz9bc93b95w3xj4rjxjbii26pm3j7gqyk")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/sevlyar/go-daemon")) + (propagated-inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (home-page "https://github.com/sevlyar/go-daemon") + (synopsis "Library for writing system daemons") + (description "Go-Daemon is a library for writing system daemons in Go.") + (license license:expat))) + (define-public go-github-com-keybase-go-ps (let ((commit "91aafc93ba19d1988cff338c1929d35b6c6f5b50") (revision "0")) -- cgit v1.2.3 From aa6df6d4e1a22456742875cb5775bf3f3d5164b6 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 13:40:27 -0400 Subject: gnu: Add go-torproject-org-pluggable-transports-goptlib. * gnu/packages/golang.scm (go-torproject-org-pluggable-transports-goptlib): New variable. --- gnu/packages/golang.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2445a51689..5fbe9d0872 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,29 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-torproject-org-pluggable-transports-goptlib + (package + (name "go-torproject-org-pluggable-transports-goptlib") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://git.torproject.org/pluggable-transports/goptlib") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lh938194hvkf8pqgnxwf6hvjv9rv0j3kasi07r2ckrj8sxzk4jc")))) + (build-system go-build-system) + (arguments + `(#:import-path "git.torproject.org/pluggable-transports/goptlib")) + (home-page "https://gitweb.torproject.org/pluggable-transports/goptlib.git/") + (synopsis "Go pluggable transports library") + (description "GoPtLib is a library for writing Tor pluggable transports in +Go.") + (license license:cc0))) + (define-public go-github-com-sevlyar-go-daemon (package (name "go-github-com-sevlyar-go-daemon") -- cgit v1.2.3 From fad3cce201b857f073a816c4bbe9da5d75e1c5e4 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 14:16:35 -0400 Subject: gnu: Add go-github-com-willscott-goturn. * gnu/packages/golang.scm (go-github-com-willscott-goturn): New variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5fbe9d0872..5e9c16b9f0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,32 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-willscott-goturn + (let ((commit "19f41278d0c9251d64e0ee29f37d51e87a24a97b") + (revision "0")) + (package + (name "go-github-com-willscott-goturn") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/willscott/goturn") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zwvhfznr84ayzknn9flh65nvqjsixisgy9fkhz2jlahl1ldqcq7")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/willscott/goturn")) + (home-page "https://github.com/willscott/goturn") + (synopsis "Go TURN dialer") + (description "GoTURN is a library providing a Go interface compatible with +the golang proxy package which connects through a TURN relay. It provides +parsing and encoding support for STUN and TURN protocols.") + (license license:bsd-3)))) + (define-public go-torproject-org-pluggable-transports-goptlib (package (name "go-torproject-org-pluggable-transports-goptlib") -- cgit v1.2.3 From 213570dbd3ae919a629337562aebacec9f2fdd3a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 15:09:21 -0400 Subject: gnu: Add go-github-com-operatorfoundation-obfs4. * gnu/packages/golang.scm (go-github-com-operatorfoundation-obfs4): New variable. --- gnu/packages/golang.scm | 128 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5e9c16b9f0..cd21287531 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,134 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-operatorfoundation-obfs4 + (package + (name "go-github-com-operatorfoundation-obfs4") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/OperatorFoundation/obfs4") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0s730xagdxs66wfh65hb5v9a5h01q5ncic3pyij0a043scagizgr")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/OperatorFoundation/obfs4" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda _ + (substitute* (find-files "." "\\.go$") + ;; To drop '.git' suffix in import path of goptlib. + (("goptlib\\.git") "goptlib")))) + (replace 'build + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'build) + `(,@arguments #:import-path ,directory))) + (list + "github.com/OperatorFoundation/obfs4/common/csrand" + "github.com/OperatorFoundation/obfs4/common/drbg" + "github.com/OperatorFoundation/obfs4/common/log" + "github.com/OperatorFoundation/obfs4/common/ntor" + "github.com/OperatorFoundation/obfs4/common/probdist" + "github.com/OperatorFoundation/obfs4/common/pt_extras" + "github.com/OperatorFoundation/obfs4/common/replayfilter" + "github.com/OperatorFoundation/obfs4/common/socks5" + "github.com/OperatorFoundation/obfs4/common/termmon" + "github.com/OperatorFoundation/obfs4/common/uniformdh" + "github.com/OperatorFoundation/obfs4/modes/pt_socks5" + "github.com/OperatorFoundation/obfs4/modes/stun_udp" + "github.com/OperatorFoundation/obfs4/modes/transparent_tcp" + "github.com/OperatorFoundation/obfs4/modes/transparent_udp" + "github.com/OperatorFoundation/obfs4/obfs4proxy" + "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http" + "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4" + "github.com/OperatorFoundation/obfs4/transports")))) + (replace 'check + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'check) + `(,@arguments #:import-path ,directory))) + (list + "github.com/OperatorFoundation/obfs4/common/csrand" + "github.com/OperatorFoundation/obfs4/common/drbg" + "github.com/OperatorFoundation/obfs4/common/log" + "github.com/OperatorFoundation/obfs4/common/ntor" + "github.com/OperatorFoundation/obfs4/common/probdist" + "github.com/OperatorFoundation/obfs4/common/pt_extras" + "github.com/OperatorFoundation/obfs4/common/replayfilter" + "github.com/OperatorFoundation/obfs4/common/socks5" + "github.com/OperatorFoundation/obfs4/common/termmon" + "github.com/OperatorFoundation/obfs4/common/uniformdh" + ;; ERROR: Println arg dialFn is a func value, not called. + ;;"github.com/OperatorFoundation/obfs4/modes/pt_socks5" + ;; ERROR: Infof format %s has arg ln of wrong type *net.UDPConn. + ;;"github.com/OperatorFoundation/obfs4/modes/stun_udp" + "github.com/OperatorFoundation/obfs4/modes/transparent_tcp" + ;; ERROR: Infof format %s has arg ln of wrong type *net.UDPConn + ;;"github.com/OperatorFoundation/obfs4/modes/transparent_udp" + ;; ERROR: Println call has possible formatting directive %s. + ;;"github.com/OperatorFoundation/obfs4/obfs4proxy" + "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http" + "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4" + "github.com/OperatorFoundation/obfs4/transports")))) + (replace 'install + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,directory))) + (list + "github.com/OperatorFoundation/obfs4/common/csrand" + "github.com/OperatorFoundation/obfs4/common/drbg" + "github.com/OperatorFoundation/obfs4/common/log" + "github.com/OperatorFoundation/obfs4/common/ntor" + "github.com/OperatorFoundation/obfs4/common/probdist" + "github.com/OperatorFoundation/obfs4/common/pt_extras" + "github.com/OperatorFoundation/obfs4/common/replayfilter" + "github.com/OperatorFoundation/obfs4/common/socks5" + "github.com/OperatorFoundation/obfs4/common/termmon" + "github.com/OperatorFoundation/obfs4/common/uniformdh" + "github.com/OperatorFoundation/obfs4/modes/pt_socks5" + "github.com/OperatorFoundation/obfs4/modes/stun_udp" + "github.com/OperatorFoundation/obfs4/modes/transparent_tcp" + "github.com/OperatorFoundation/obfs4/modes/transparent_udp" + "github.com/OperatorFoundation/obfs4/obfs4proxy" + "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_http" + "github.com/OperatorFoundation/obfs4/proxy_dialers/proxy_socks4" + "github.com/OperatorFoundation/obfs4/transports"))))))) + (propagated-inputs + `(("go-github-com-dchest-siphash" + ,go-github-com-dchest-siphash) + ("go-github-com-operatorfoundation-ed25519" + ,go-github-com-operatorfoundation-ed25519) + ("go-github-com-willscott-goturn" + ,go-github-com-willscott-goturn) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) + ("go-golang-org-x-net" ,go-golang-org-x-net) + ("go-torproject-org-pluggable-transports-goptlib" + ,go-torproject-org-pluggable-transports-goptlib))) + (home-page "https://github.com/OperatorFoundation/obfs4") + (synopsis "Network obfourscator to scramble network traffic") + (description "Obfs4 is a look-like nothing obfuscation protocol that +incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol. +The notable differences between ScrambleSuit and obfs4 are: +@itemize +@item The handshake always does a full key exchange (no such thing as a Session +Ticket Handshake). +@item The handshake uses the Tor Project's ntor handshake with public keys +obfuscated via the Elligator 2 mapping. +@item The link layer encryption uses NaCl secret boxes (Poly1305/XSalsa20). +@end itemize") + (license license:bsd-2))) + (define-public go-github-com-willscott-goturn (let ((commit "19f41278d0c9251d64e0ee29f37d51e87a24a97b") (revision "0")) -- cgit v1.2.3 From 084dcd2708565a403b3ea1bc550e13aa7097bee0 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 15:20:59 -0400 Subject: gnu: Add go-github-com-operatorfoundation-shapeshifter-ipc. * gnu/packages/golang.scm (go-github-com-operatorfoundation-shapeshifter-ipc): New variable. --- gnu/packages/golang.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cd21287531..81815f9c6b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,59 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-operatorfoundation-shapeshifter-ipc + (package + (name "go-github-com-operatorfoundation-shapeshifter-ipc") + (version "2.0.0") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/OperatorFoundation/shapeshifter-ipc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1q1fcnllg462nfca16s5mr0n2jh92x3hj946qnaqc682phjz04lg")))) + (build-system go-build-system) + (arguments + `(#:tests? #f ; ERROR: undefined: Args. + #:unpack-path "github.com/OperatorFoundation/shapeshifter-ipc" + #: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/OperatorFoundation/shapeshifter-ipc/v2" + "github.com/OperatorFoundation/shapeshifter-ipc/v3")))) + (replace 'check + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'check) + `(,@arguments #:import-path ,directory))) + (list + "github.com/OperatorFoundation/shapeshifter-ipc/v2" + "github.com/OperatorFoundation/shapeshifter-ipc/v3")))) + (replace 'install + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,directory))) + (list + "github.com/OperatorFoundation/shapeshifter-ipc/v2" + "github.com/OperatorFoundation/shapeshifter-ipc/v3"))))))) + (home-page "https://github.com/OperatorFoundation/shapeshifter-ipc") + (synopsis "Go implementation of the Pluggable Transports IPC protocol") + (description "Shapeshifter-IPC is a library for Go implementing the IPC +protocol from the Pluggable Transports 2.0 specification.") + (license license:expat))) + (define-public go-github-com-operatorfoundation-obfs4 (package (name "go-github-com-operatorfoundation-obfs4") -- cgit v1.2.3 From db8d15924c5b71e86bfafbc3b80e50a91bae1999 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 17:58:40 -0400 Subject: gnu: Add go-github-com-op-go-logging. * gnu/packages/golang.scm (go-github-com-op-go-logging): New variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 81815f9c6b..adfe7995f3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,32 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-op-go-logging + (package + (name "go-github-com-op-go-logging") + (version "1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/op/go-logging") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01a6lkpj5p82gplddh55az194s9y3014p4j8x4zc8yv886z9c8gn")))) + (build-system go-build-system) + (arguments + `(#:tests? #f ; ERROR: incorrect callpath: String.rec...a.b.c.Info. + #:import-path "github.com/op/go-logging")) + (home-page "https://github.com/op/go-logging") + (synopsis "Go logging library") + (description "Go-Logging implements a logging infrastructure for Go. Its +output format is customizable and supports different logging backends like +syslog, file and memory. Multiple backends can be utilized with different log +levels per backend and logger.") + (license license:bsd-3))) + (define-public go-github-com-operatorfoundation-shapeshifter-ipc (package (name "go-github-com-operatorfoundation-shapeshifter-ipc") -- cgit v1.2.3 From 314f505f2c361c4e9e252f9e526294fe583bf81c Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 18:08:02 -0400 Subject: gnu: Add go-github-com-blanu-dust. * gnu/packages/golang.scm (go-github-com-blanu-dust): New variable. --- gnu/packages/golang.scm | 99 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index adfe7995f3..309af40503 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,105 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-blanu-dust + (package + (name "go-github-com-blanu-dust") + (version "1.0.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/blanu/Dust") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1lya21w06ramq37af5hdiafbrv5k1csjm7k7m00v0bfxg3ni01bs")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/blanu/Dust" + #: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/blanu/Dust/go/buf" + "github.com/blanu/Dust/go/dist" + "github.com/blanu/Dust/go/huffman" + "github.com/blanu/Dust/go/model1" + "github.com/blanu/Dust/go/prim1" + "github.com/blanu/Dust/go/proc" + "github.com/blanu/Dust/go/sillyHex" + "github.com/blanu/Dust/go/skein" + "github.com/blanu/Dust/go/v2/Dust2_proxy" + "github.com/blanu/Dust/go/v2/Dust2_tool" + "github.com/blanu/Dust/go/v2/crypting" + "github.com/blanu/Dust/go/v2/interface" + "github.com/blanu/Dust/go/v2/shaping")))) + (replace 'check + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'check) + `(,@arguments #:import-path ,directory))) + (list + "github.com/blanu/Dust/go/buf" + "github.com/blanu/Dust/go/dist" + ;; Repository is missing test files directory. + ;;"github.com/blanu/Dust/go/huffman" + "github.com/blanu/Dust/go/model1" + "github.com/blanu/Dust/go/prim1" + "github.com/blanu/Dust/go/proc" + "github.com/blanu/Dust/go/sillyHex" + "github.com/blanu/Dust/go/skein" + "github.com/blanu/Dust/go/v2/Dust2_proxy" + "github.com/blanu/Dust/go/v2/Dust2_tool" + "github.com/blanu/Dust/go/v2/crypting" + "github.com/blanu/Dust/go/v2/interface" + "github.com/blanu/Dust/go/v2/shaping")))) + (replace 'install + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,directory))) + (list + "github.com/blanu/Dust/go/buf" + "github.com/blanu/Dust/go/dist" + "github.com/blanu/Dust/go/huffman" + "github.com/blanu/Dust/go/model1" + "github.com/blanu/Dust/go/prim1" + "github.com/blanu/Dust/go/proc" + "github.com/blanu/Dust/go/sillyHex" + "github.com/blanu/Dust/go/skein" + "github.com/blanu/Dust/go/v2/Dust2_proxy" + "github.com/blanu/Dust/go/v2/Dust2_tool" + "github.com/blanu/Dust/go/v2/crypting" + "github.com/blanu/Dust/go/v2/interface" + "github.com/blanu/Dust/go/v2/shaping"))))))) + (propagated-inputs + `(("go-github-com-operatorfoundation-ed25519" + ,go-github-com-operatorfoundation-ed25519) + ("go-github-com-op-go-logging" + ,go-github-com-op-go-logging) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto))) + (home-page "https://github.com/blanu/Dust") + (synopsis "Censorship-resistant internet transport protocol") + (description "Dust is an Internet protocol designed to resist a number of +attacks currently in active use to censor Internet communication. While +adherence to the theoretical maxims of cryptographic security is observed where +possible, the focus of Dust is on real solutions to real attacks.") + (license + (list + ;; Skein. + license:bsd-2 + ;; Others. + license:expat)))) + (define-public go-github-com-op-go-logging (package (name "go-github-com-op-go-logging") -- cgit v1.2.3 From d1f4ace68ef58a54398d7378be34f35ed2a5d1a7 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 18:53:00 -0400 Subject: gnu: Add go-github-com-deckarep-golang-set. * gnu/packages/golang.scm (go-github-com-deckarep-golang-set): New variable. --- gnu/packages/golang.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 309af40503..0d8239675e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,28 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-deckarep-golang-set + (package + (name "go-github-com-deckarep-golang-set") + (version "1.7.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/deckarep/golang-set") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0y64c0p6a7ww5jp6adm6fm97vsni86njw8wkwxfmciy466vhl0lf")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/deckarep/golang-set")) + (home-page "https://github.com/deckarep/golang-set") + (synopsis "Set type for Go") + (description "Set is the set collection for the Go language.") + (license license:expat))) + (define-public go-github-com-blanu-dust (package (name "go-github-com-blanu-dust") -- cgit v1.2.3 From ead243bfb62c8a4c686402966c5ec9d0700c5f7e Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 19:00:34 -0400 Subject: gnu: Add go-github-com-operatorfoundation-monolith-go. * gnu/packages/golang.scm (go-github-com-operatorfoundation-monolith-go): New variable. --- gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0d8239675e..daf64fd63e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,33 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-operatorfoundation-monolith-go + (package + (name "go-github-com-operatorfoundation-monolith-go") + (version "1.0.4") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/OperatorFoundation/monolith-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "066bqlgw5h7a3kxswqlv734asb7nw2y6snsn09yqk0ixj23qw22s")))) + (build-system go-build-system) + (arguments + `(#:tests? #f ; ERROR: Generated bytes do not match correct answer. + #:unpack-path "github.com/OperatorFoundation/monolith-go" + #:import-path "github.com/OperatorFoundation/monolith-go/monolith")) + (propagated-inputs + `(("go-github-com-deckarep-golang-set" + ,go-github-com-deckarep-golang-set))) + (home-page "https://github.com/OperatorFoundation/monolith-go") + (synopsis "Byte sequences library") + (description "Monolith-Go is a Go library for working with byte sequences.") + (license license:expat))) + (define-public go-github-com-deckarep-golang-set (package (name "go-github-com-deckarep-golang-set") -- cgit v1.2.3 From 19f3b7c7b8ccd157999d004f0054c9e6217db5c0 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 19:12:27 -0400 Subject: gnu: Add go-github-com-opentracing-opentracing-go. * gnu/packages/golang.scm (go-github-com-opentracing-opentracing-go): New variable. --- 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 daf64fd63e..a33178b99d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,31 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-opentracing-opentracing-go + (package + (name "go-github-com-opentracing-opentracing-go") + (version "1.2.0") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/opentracing/opentracing-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "04rgdwl29kimp2wnm4dycnzp7941hvpj6wym85x23c6fclacm94h")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/opentracing/opentracing-go")) + (native-inputs + `(("go-github-com-stretchr-testify" + ,go-github-com-stretchr-testify))) + (home-page "https://github.com/opentracing/opentracing-go") + (synopsis "OpenTracing API for Go") + (description "OpenTracing-Go is a Go implementation of the OpenTracing API.") + (license license:asl2.0))) + (define-public go-github-com-operatorfoundation-monolith-go (package (name "go-github-com-operatorfoundation-monolith-go") -- cgit v1.2.3 From 68bfec63c247436265f7e9c17320e0ef9fdfdd63 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 20:07:16 -0400 Subject: gnu: Add go-github-com-mufti1-interconv. * gnu/packages/golang.scm (go-github-com-mufti1-interconv): New variable. --- 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 a33178b99d..9f7a522a51 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,31 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-mufti1-interconv + (let ((commit "d7c72925c6568d60d361757bb9f2d252dcca745c") + (revision "0")) + (package + (name "go-github-com-mufti1-interconv") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/mufti1/interconv") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "13f5pvr74afa28pbpmgvjzjx68vv5zmrwlvxp7hr5bl5625zlxmy")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/mufti1/interconv" + #:import-path "github.com/mufti1/interconv/package")) + (home-page "https://github.com/mufti1/interconv") + (synopsis "Data type converter") + (description "InterConv converts interfaces into any data type.") + (license license:expat)))) + (define-public go-github-com-opentracing-opentracing-go (package (name "go-github-com-opentracing-opentracing-go") -- cgit v1.2.3 From 7b8e9af56cb0a54842ac01716bd170dc30e91221 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 20:21:09 -0400 Subject: gnu: Add go-github-com-aead-chacha20. * gnu/packages/golang.org (go-github-com-aead-chacha20): New variable. --- gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9f7a522a51..cf59096c95 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,34 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-aead-chacha20 + (let ((commit "8b13a72661dae6e9e5dea04f344f0dc95ea29547") + (revision "0")) + (package + (name "go-github-com-aead-chacha20") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/aead/chacha20") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0gbmgq5kbqmbyrsav57ql4jzbvqvp1q7yvcd5fl3wf5g94iyv56r")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/aead/chacha20")) + (propagated-inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (home-page "https://github.com/aead/chacha20") + (synopsis "ChaCha20 and XChaCha20 stream ciphers") + (description "ChaCha is a stream cipher family created by Daniel Bernstein. +The most common ChaCha variant is ChaCha20 (20 rounds). ChaCha20 is +standardized in RFC 7539.") + (license license:expat)))) + (define-public go-github-com-mufti1-interconv (let ((commit "d7c72925c6568d60d361757bb9f2d252dcca745c") (revision "0")) -- cgit v1.2.3 From e174191029529d19e7a8a12d749ec6aa2ae9ba3e Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 20:32:43 -0400 Subject: gnu: Add go-github-com-riobard-go-bloom. * gnu/packages/golang.scm (go-github-com-riobard-go-bloom): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cf59096c95..2acde4adb4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,30 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-riobard-go-bloom + (let ((commit "cdc8013cb5b3eb0efebec85f0e904efccac42df9") + (revision "0")) + (package + (name "go-github-com-riobard-go-bloom") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/riobard/go-bloom") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "10a8ixh6zw52df2imxrzgxi82zc1j5hqnv5smjp818qwdn1a1rhj")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/riobard/go-bloom")) + (home-page "https://github.com/riobard/go-bloom") + (synopsis "Bloom filter in Go") + (description "Go-Bloom implements bloom filter using double hashing.") + (license license:asl2.0)))) + (define-public go-github-com-aead-chacha20 (let ((commit "8b13a72661dae6e9e5dea04f344f0dc95ea29547") (revision "0")) -- cgit v1.2.3 From 62646d768d8e4f161c763f379131b2a0a972299a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 20:56:29 -0400 Subject: gnu: Add go-github-com-shadowsocks-go-shadowsocks2. * gnu/packages/golang.scm (go-github-com-shadowsocks-go-shadowsocks2): New variable. --- 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 2acde4adb4..e3816534f3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,37 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-shadowsocks-go-shadowsocks2 + (package + (name "go-github-com-shadowsocks-go-shadowsocks2") + ;; Version > 0.1.3 requires go-toolchain v1.16. + (version "0.1.3") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/shadowsocks/go-shadowsocks2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1wzy3ml4ld83iawcl6p313bskzs6zjhz8vlg8kpwgn71cnbv4pvi")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/shadowsocks/go-shadowsocks2")) + (propagated-inputs + `(("go-github-com-riobard-go-bloom" + ,go-github-com-riobard-go-bloom) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) + ("go-golang-org-x-net" ,go-golang-org-x-net) + ("go-golang-org-x-sys" ,go-golang-org-x-sys) + ("go-golang-org-x-text" ,go-golang-org-x-text))) + (home-page "https://github.com/shadowsocks/go-shadowsocks2") + (synopsis "Shadowsocks tunnel proxy") + (description "Go-ShadowSocks is a Go implementation of the Shadowsocks tunnel +proxy protocol.") + (license license:asl2.0))) + (define-public go-github-com-riobard-go-bloom (let ((commit "cdc8013cb5b3eb0efebec85f0e904efccac42df9") (revision "0")) -- cgit v1.2.3 From 56835ab7304351055cf1a4bd1cd442d7b8806f8a Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 21:09:08 -0400 Subject: gnu: Add go-github-com-kataras-pio. * gnu/packages/golang.scm (go-github-com-kataras-pio): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e3816534f3..9e2fb4bf7b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,30 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-kataras-pio + (package + (name "go-github-com-kataras-pio") + (version "0.0.10") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/kataras/pio") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11d2jy9xz4airicgmjcy4nb80kwv22jp140wzn2l5412jdr4jmkp")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/kataras/pio")) + (home-page "https://github.com/kataras/pio") + (synopsis "Pill for Input/Output") + (description "PIO is a low-level package that provides a way to centralize +different output targets. Supports colors and text decoration to all popular +terminals.") + (license license:bsd-3))) + (define-public go-github-com-shadowsocks-go-shadowsocks2 (package (name "go-github-com-shadowsocks-go-shadowsocks2") -- cgit v1.2.3 From d28eacb0116925aa289e0e9ba4e063f8dc61a872 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 21:37:05 -0400 Subject: gnu: Add go-github-com-kataras-golog. * gnu/packages/golang.scm (go-github-com-kataras-golog): New variable. --- 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 9e2fb4bf7b..0bbfaf4512 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,31 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-kataras-golog + (package + (name "go-github-com-kataras-golog") + (version "0.1.7") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/kataras/golog") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ll24g50j48wqikzf67cyaq0m0f57v1ap24nbz3cmv3yzqi6wdl9")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/kataras/golog")) + (propagated-inputs + `(("go-github-com-kataras-pio" + ,go-github-com-kataras-pio))) + (home-page "https://github.com/kataras/golog") + (synopsis "Logging foundation for Go applications") + (description "GoLog is a level-based logger written in Go.") + (license license:bsd-3))) + (define-public go-github-com-kataras-pio (package (name "go-github-com-kataras-pio") -- cgit v1.2.3 From 2fa52c8a9040b08e1c3e4f3115ca785daae1d688 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 22:00:35 -0400 Subject: gnu: Add go-github-com-operatorfoundation-shapeshifter-transports. * gnu/packages/golang.scm (go-github-com-operatorfoundation-shapeshifter-transports): New variable. --- gnu/packages/golang.scm | 135 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0bbfaf4512..cf6ed4a6a5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,141 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-github-com-operatorfoundation-shapeshifter-transports + (package + (name "go-github-com-operatorfoundation-shapeshifter-transports") + (version "3.0.12") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/OperatorFoundation/shapeshifter-transports") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0f1hzhk3q2fgqdg14zlg3z0s0ib1y9xwj89qnjk95b37zbgqjgsb")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/OperatorFoundation/shapeshifter-transports" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda _ + (substitute* (find-files "." "\\.go$") + ;; To drop '.git' suffix in import path of goptlib. + (("goptlib\\.git") "goptlib")))) + (replace 'build + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'build) + `(,@arguments #:import-path ,directory))) + (list + "github.com/OperatorFoundation/shapeshifter-transports/transports/Dust/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Dust/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Optimizer/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Optimizer/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Replicant/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Replicant/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meekserver/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meekserver/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/shadow/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/shadow/v3")))) + (replace 'check + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'check) + `(,@arguments #:import-path ,directory))) + (list + ;;; ERROR: invalid memory address or nil pointer dereference. + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/Dust/v2" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/Dust/v3" + ;;; ERROR: failed with status 1. + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/Optimizer/v2" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/Optimizer/v3" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/Replicant/v2" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/Replicant/v3" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite/v2" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite/v3" + ;;; ERROR: bind: permission denied. + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/meekserver/v2" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/meekserver/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2/v3")))) + ;;; ERROR: failed with status 1. + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4/v2" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4/v3" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/shadow/v2" + ;;"github.com/OperatorFoundation/shapeshifter-transports/transports/shadow/v3")))) + (replace 'install + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,directory))) + (list + "github.com/OperatorFoundation/shapeshifter-transports/transports/Dust/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Dust/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Optimizer/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Optimizer/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Replicant/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/Replicant/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meeklite/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meekserver/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/meekserver/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs2/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/obfs4/v3" + "github.com/OperatorFoundation/shapeshifter-transports/transports/shadow/v2" + "github.com/OperatorFoundation/shapeshifter-transports/transports/shadow/v3"))))))) + (native-inputs + `(("go-github-com-stretchr-testify" + ,go-github-com-stretchr-testify))) + (propagated-inputs + `(("go-github-com-aead-chacha20" + ,go-github-com-aead-chacha20) + ("go-github-com-blanu-dust" + ,go-github-com-blanu-dust) + ("go-github-com-deckarep-golang-set" + ,go-github-com-deckarep-golang-set) + ("go-github-com-kataras-golog" + ,go-github-com-kataras-golog) + ("go-github-com-mufti1-interconv" + ,go-github-com-mufti1-interconv) + ("go-github-com-opentracing-opentracing-go" + ,go-github-com-opentracing-opentracing-go) + ("go-github-com-operatorfoundation-monolith-go" + ,go-github-com-operatorfoundation-monolith-go) + ("go-github-com-operatorfoundation-obfs4" + ,go-github-com-operatorfoundation-obfs4) + ("go-github-com-operatorfoundation-shapeshifter-ipc" + ,go-github-com-operatorfoundation-shapeshifter-ipc) + ("go-github-com-shadowsocks-go-shadowsocks2" + ,go-github-com-shadowsocks-go-shadowsocks2) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) + ("go-golang-org-x-net" ,go-golang-org-x-net) + ("go-torproject-org-pluggable-transports-goptlib" + ,go-torproject-org-pluggable-transports-goptlib))) + (home-page "https://github.com/OperatorFoundation/shapeshifter-transports") + (synopsis "Go implementation of Pluggable Transports") + (description "Shapeshifter-Transports is a set of Pluggable Transports +implementing the Go API from the Pluggable Transports 2.0 specification. +Each transport implements a different method of shapeshifting network traffic. +The goal is for application traffic to be sent over the network in a shapeshifted +form that bypasses network filtering, allowing the application to work on +networks where it would otherwise be blocked or heavily throttled.") + (license license:expat))) + (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") -- cgit v1.2.3 From e6ea0abd93d2141105eaa240b777a2478598adb6 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Mon, 24 May 2021 22:16:01 -0400 Subject: gnu: Add go-0xacab-org-leap-shapeshifter. * gnu/packages/golang.scm (go-0xacab-org-leap-shapeshifter): New variable. --- gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cf6ed4a6a5..a830afa022 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -74,6 +74,39 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +(define-public go-0xacab-org-leap-shapeshifter + (let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474") + (revision "12")) + (package + (name "go-0xacab-org-leap-shapeshifter") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://0xacab.org/leap/shapeshifter") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m4fla9ppl53k9syms4dsad92wakr74cdvids3xxv3amdh4d1w4i")))) + (build-system go-build-system) + (arguments + `(#:import-path "0xacab.org/leap/shapeshifter")) + (propagated-inputs + `(("go-github-com-operatorfoundation-obfs4" + ,go-github-com-operatorfoundation-obfs4) + ("go-github-com-operatorfoundation-shapeshifter-transports" + ,go-github-com-operatorfoundation-shapeshifter-transports) + ("go-golang-org-x-net" ,go-golang-org-x-net))) + (home-page "https://0xacab.org/leap/shapeshifter") + (synopsis "Shapeshifter Dispatcher Library") + (description "Shapeshifter provides network protocol shapeshifting +technology. The purpose of this technology is to change the characteristics of +network traffic so that it is not identified and subsequently blocked by network +filtering devices.") + (license license:bsd-2)))) + (define-public go-github-com-operatorfoundation-shapeshifter-transports (package (name "go-github-com-operatorfoundation-shapeshifter-transports") -- cgit v1.2.3 From 344460bab44ec3473877089983e4a5b518b9c9d5 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 9 Jul 2021 12:31:02 +0530 Subject: gnu: Add go-github-com-davecgh-go-xdr. * gnu/packages/golang.scm (go-github-com-davecgh-go-xdr): New variable. --- gnu/packages/golang.scm | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a830afa022..cbce7bec41 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -15,7 +15,7 @@ ;;; Copyright © 2018, 2019, 2020 Katherine Cox-Buday ;;; Copyright © 2019 Giovanni Biscuolo ;;; Copyright © 2019, 2020 Alex Griffin -;;; Copyright © 2019, 2020 Arun Isaac +;;; Copyright © 2019, 2020, 2021 Arun Isaac ;;; Copyright © 2020 Jack Hill ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Nicolas Goaziou @@ -8224,3 +8224,28 @@ (define-public go-go-uber-org-zap "This package provides a library for fast, structured, leveled logging in Go.") (license license:expat))) + +(define-public go-github-com-davecgh-go-xdr + (package + (name "go-github-com-davecgh-go-xdr") + (version "0.0.0-20161123171359-e6a2ba005892") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/davecgh/go-xdr") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vifrz4iil4r7k8sz5iqlfbh80ysgs5abp2simgyhsbrkxrrsrrd")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/davecgh/go-xdr/xdr2" + #:unpack-path "github.com/davecgh/go-xdr")) + (home-page "https://github.com/davecgh/go-xdr") + (synopsis "Pure Go implementation of the XDR standard") + (description "@code{go-xdr} implements the data representation portion of +the External Data Representation (XDR) standard protocol as specified in RFC +4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") + (license license:isc))) -- cgit v1.2.3 From edaea8d2ace2745c0d2ecc1429928905815a4439 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 9 Jul 2021 12:34:02 +0530 Subject: gnu: Add go-github-com-dustin-go-humanize. * gnu/packages/golang.scm (go-github-com-dustin-go-humanize): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index cbce7bec41..972989c84f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8249,3 +8249,27 @@ (define-public go-github-com-davecgh-go-xdr the External Data Representation (XDR) standard protocol as specified in RFC 4506 (obsoletes RFC 1832 and RFC 1014) in pure Go.") (license license:isc))) + +(define-public go-github-com-dustin-go-humanize + (package + (name "go-github-com-dustin-go-humanize") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dustin/go-humanize") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1kqf1kavdyvjk7f8kx62pnm7fbypn9z1vbf8v2qdh3y7z7a0cbl3")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/dustin/go-humanize")) + (home-page "https://github.com/dustin/go-humanize") + (synopsis "Humane unit formatter") + (description "@code{go-humanize} provides formatters for units to human +friendly sizes. It converts boring ugly numbers to human-friendly strings and +back.") + (license license:expat))) -- cgit v1.2.3 From 42d9c3b24a0246213b9b9cec5d742bc0be338048 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 9 Jul 2021 12:34:41 +0530 Subject: gnu: Add go-lukechampine-com-blake3. * gnu/packages/golang.scm (go-lukechampine-com-blake3): New variable. --- gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 972989c84f..8eb93b9456 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8273,3 +8273,30 @@ (define-public go-github-com-dustin-go-humanize friendly sizes. It converts boring ugly numbers to human-friendly strings and back.") (license license:expat))) + +(define-public go-lukechampine-com-blake3 + (package + (name "go-lukechampine-com-blake3") + (version "1.1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/lukechampine/blake3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yxdwp8dpnnq2wbwsxlkbq570i99sc6781y39czjxi9jh9z5nw55")))) + (build-system go-build-system) + (arguments + '(#:import-path "lukechampine.com/blake3")) + (propagated-inputs + `(("go-github-com-klauspost-cpuid" ,go-github-com-klauspost-cpuid))) + (home-page "https://pkg.go.dev/lukechampine.com/blake3") + (synopsis "Implementation of the BLAKE3 cryptographic hash function") + (description "@code{blake3} implements the BLAKE3 cryptographic hash +function. In addition to the pure-Go implementation, this package also +contains AVX-512 and AVX2 routines (generated by avo) that greatly increase +performance for large inputs and outputs.") + (license license:expat))) -- cgit v1.2.3 From c94683e017a1912ae791b1d5f5d83a712cee6a68 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 9 Jul 2021 12:35:02 +0530 Subject: gnu: Add go-golang-org-x-term. * gnu/packages/golang.scm (go-golang-org-x-term): New variable. --- gnu/packages/golang.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 8eb93b9456..673d206713 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8300,3 +8300,27 @@ (define-public go-lukechampine-com-blake3 contains AVX-512 and AVX2 routines (generated by avo) that greatly increase performance for large inputs and outputs.") (license license:expat))) + +(define-public go-golang-org-x-term + (package + (name "go-golang-org-x-term") + (version "0.0.0-20210615171337-6886f2dfbf5b") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://go.googlesource.com/term") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0661w7dp2ak1k4ii90v6chw2x8a6g4sc5j0ba58qlplaj4k5l0xs")))) + (build-system go-build-system) + (arguments '(#:import-path "golang.org/x/term")) + (propagated-inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (home-page "https://pkg.go.dev/golang.org/x/term") + (synopsis "Go terminal/console support") + (description "@code{term} provides support functions for dealing with +terminals, as commonly found on Unix systems.") + (license license:bsd-3))) -- cgit v1.2.3 From 7aa2972bfaed8cf2dccfd0d5bc165ca3a36ab907 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 9 Jul 2021 12:35:22 +0530 Subject: gnu: Add go-github-com-flynn-noise. * gnu/packages/golang.scm (go-github-com-flynn-noise): New variable. --- gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 673d206713..5a7f27bc91 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8324,3 +8324,31 @@ (define-public go-golang-org-x-term (description "@code{term} provides support functions for dealing with terminals, as commonly found on Unix systems.") (license license:bsd-3))) + +(define-public go-github-com-flynn-noise + (package + (name "go-github-com-flynn-noise") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/flynn/noise") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1j6phxyqx06wcqxjpin696fkp85s76qcp3i2f7fv6q2fb6618f6y")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/flynn/noise")) + (propagated-inputs + `(("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto))) + (home-page "https://github.com/flynn/noise") + (synopsis "Go implementation of the Noise protocol framework") + (description "@code{noise} implements the Noise protocol framework. Noise +is a low-level framework for building crypto protocols. Noise protocols +support mutual and optional authentication, identity hiding, forward secrecy, +zero round-trip encryption, and other advanced features.") + (license license:bsd-3))) -- cgit v1.2.3 From 5b6447fccedd372b065f7f6de042614f8091b1be Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 9 Jul 2021 12:36:21 +0530 Subject: gnu: Add go-github-com-klauspost-compress. * gnu/packages/golang.scm (go-github-com-klauspost-compress): New variable. --- gnu/packages/golang.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5a7f27bc91..0d5993d2c4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -67,6 +67,7 @@ (define-module (gnu packages golang) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pulseaudio) + #:use-module (gnu packages syncthing) #:use-module (gnu packages terminals) #:use-module (gnu packages textutils) #:use-module (gnu packages tls) @@ -8352,3 +8353,35 @@ (define-public go-github-com-flynn-noise support mutual and optional authentication, identity hiding, forward secrecy, zero round-trip encryption, and other advanced features.") (license license:bsd-3))) + +(define-public go-github-com-klauspost-compress + (package + (name "go-github-com-klauspost-compress") + (version "1.13.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/klauspost/compress") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ydnf9rizlhm8rilh14674qqx272sbwbkjx06xn9pqvy6mmn2r3r")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/klauspost/compress" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'fix-permissions + (lambda* (#:key outputs #:allow-other-keys) + ;; Provide write permissions on gzip files so that + ;; reset-gzip-timestamps has sufficient permissions. + (for-each make-file-writable + (find-files (assoc-ref outputs "out") ".gz$"))))))) + (propagated-inputs + `(("go-github-com-golang-snappy" ,go-github-com-golang-snappy))) + (home-page "https://github.com/klauspost/compress") + (synopsis "Go compression library") + (description "@code{compress} provides various compression algorithms.") + (license license:bsd-3))) -- cgit v1.2.3 From 11c265187d3cf48a7b4ac1af48201c96fead8a75 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:20:54 -0700 Subject: gnu: go-github-com-puerkitobio-goquery: Update to 1.7.0. * gnu/packages/golang.scm (go-github-com-puerkitobio-goquery): Update to 1.7.0. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 0d5993d2c4..57aea50ce1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6683,7 +6683,7 @@ (define-public go-github-com-andybalholm-cascadia (define-public go-github-com-puerkitobio-goquery (package (name "go-github-com-puerkitobio-goquery") - (version "1.5.1") + (version "1.7.0") (source (origin (method git-fetch) (uri (git-reference @@ -6692,7 +6692,7 @@ (define-public go-github-com-puerkitobio-goquery (file-name (git-file-name name version)) (sha256 (base32 - "08nf88cg663slzqr51k2jxlm1krnh86nrzwbk6v41ccq5jkfm7fx")))) + "0gh1d99l5xc9hvwa4j40pfq3y9vfyq52mnrz6bf1kw2r2zr2gbcc")))) (build-system go-build-system) (arguments `(#:import-path "github.com/PuerkitoBio/goquery")) -- cgit v1.2.3 From 174a43b9280219f1a6222ad2a23413123c1a70cf Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:20:55 -0700 Subject: gnu: go-go-uber-org-atomic: Update to 1.8.0. * gnu/packages/golang.scm (go-go-uber-org-atomic): Update to 1.8.0. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 57aea50ce1..ef5f032a6f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8059,7 +8059,7 @@ (define-public go-github-com-pborman-getopt (define-public go-go-uber-org-atomic (package (name "go-go-uber-org-atomic") - (version "1.7.0") + (version "1.8.0") (source (origin (method git-fetch) @@ -8068,7 +8068,7 @@ (define-public go-go-uber-org-atomic (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0yxvb5sixh76cl9j8dpa97gznj0p8pmg2cdw0ypfwhd3ipx9wph1")))) + (base32 "0grswsk7nkf7zmmychf6aj6032shyag1kgs6zf7qwxyn55dym1v8")))) (build-system go-build-system) (arguments '(#:import-path "go.uber.org/atomic")) -- cgit v1.2.3 From ddff7c8b1b7b0bc0294b0d944c94f0d5c59300e4 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:20:56 -0700 Subject: gnu: go-github-com-sergi-go-diff: Update to 1.2.0. * gnu/packages/golang.scm (go-github-com-sergi-go-diff): Update to 1.2.0. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ef5f032a6f..dc54ba67c3 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6567,7 +6567,7 @@ (define-public go-github-com-alecthomas-repr (define-public go-github-com-sergi-go-diff (package (name "go-github-com-sergi-go-diff") - (version "1.1.0") + (version "1.2.0") (source (origin (method git-fetch) (uri (git-reference @@ -6576,7 +6576,7 @@ (define-public go-github-com-sergi-go-diff (file-name (git-file-name name version)) (sha256 (base32 - "0ir8ali2vx0j7pipmlfd6k8c973akyy2nmbjrf008fm800zcp7z2")))) + "0cbj8nshllq102iiav0k1s01b8gwbkzj674g71n938qqna32y2pa")))) (build-system go-build-system) (arguments `(#:import-path "github.com/sergi/go-diff/diffmatchpatch" -- cgit v1.2.3 From 26bca253b5b711d5f0e6d36e6876cb2f59c1a545 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:20:57 -0700 Subject: gnu: go-github-com-pelletier-go-toml: Update to 1.9.3. * gnu/packages/golang.scm (go-github-com-pelletier-go-toml): Update to 1.9.3. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index dc54ba67c3..6b52d2a051 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3215,7 +3215,7 @@ (define-public go-github-com-magiconair-properties (define-public go-github-com-pelletier-go-toml (package (name "go-github-com-pelletier-go-toml") - (version "1.8.0") + (version "1.9.3") (source (origin (method git-fetch) @@ -3225,7 +3225,7 @@ (define-public go-github-com-pelletier-go-toml (file-name (git-file-name name version)) (sha256 (base32 - "0fxmjm85c9h43lvqz71wr93fcc63bhj82nwby80222xx8ja63g7y")))) + "0cqwnvlgs1wgdgjxlwv8j52f7d6syniadr51sjh2fya99m5wzvsn")))) (build-system go-build-system) (arguments `(#:import-path "github.com/pelletier/go-toml")) -- cgit v1.2.3 From dadb275ff8029e4dc9529ce44e0773c980e6c223 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:20:58 -0700 Subject: gnu: go-github-com-masterminds-goutils: Update to 1.1.1. * gnu/packages/golang.scm (go-github-com-masterminds-goutils): Update to 1.1.1. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 6b52d2a051..983baf90f5 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6334,7 +6334,7 @@ (define-public go-github-com-surgebase-porter2 (define-public go-github-com-masterminds-goutils (package (name "go-github-com-masterminds-goutils") - (version "1.1.0") + (version "1.1.1") (source (origin (method git-fetch) (uri (git-reference @@ -6343,7 +6343,7 @@ (define-public go-github-com-masterminds-goutils (file-name (git-file-name name version)) (sha256 (base32 - "180px47gj936qyk5bkv5mbbgiil9abdjq6kwkf7sq70vyi9mcfiq")))) + "09m4mbcdlv9ng3xcrmjlxi0niavby52y9nl2jhjnbx1xxpjw0jrh")))) (build-system go-build-system) (arguments `(#:import-path "github.com/Masterminds/goutils")) -- cgit v1.2.3 From 422b365e599cbd933e365c63606910a527737954 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:20:59 -0700 Subject: gnu: go-github-com-magiconair-properties: Update to 1.8.5. * gnu/packages/golang.scm (go-github-com-magiconair-properties): Update to 1.8.5. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 983baf90f5..28458d950f 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3193,7 +3193,7 @@ (define-public go-github-com-fsnotify-fsnotify (define-public go-github-com-magiconair-properties (package (name "go-github-com-magiconair-properties") - (version "1.8.4") + (version "1.8.5") (source (origin (method git-fetch) @@ -3203,7 +3203,7 @@ (define-public go-github-com-magiconair-properties (file-name (git-file-name name version)) (sha256 (base32 - "0q7d55z0v8y55dyy8nhgdnswf5zkgj3i87irbk294nvzhx01bnxd")))) + "0v4agnkhc30fblbmhs0gq2bikhdnnmqmpp4phrnza68m04j5hxbn")))) (build-system go-build-system) (arguments `(#:import-path "github.com/magiconair/properties")) -- cgit v1.2.3 From 759aa3f0629df29b6907f2884e7aa155a6235298 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:21:00 -0700 Subject: gnu: go-github-com-dlclark-regexp2: Update to 1.4.0. * gnu/packages/golang.scm (go-github-com-dlclark-regexp2): Update to 1.4.0. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 28458d950f..e7a1382997 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6492,7 +6492,7 @@ (define-public go-github-com-bmatcuk-doublestar (define-public go-github-com-dlclark-regexp2 (package (name "go-github-com-dlclark-regexp2") - (version "1.2.0") + (version "1.4.0") (source (origin (method git-fetch) (uri (git-reference @@ -6501,7 +6501,7 @@ (define-public go-github-com-dlclark-regexp2 (file-name (git-file-name name version)) (sha256 (base32 - "011l1prsywvhhi0yc7qmpsca1cwavmawyyld5kjzi0ff9ghvj4ng")))) + "1irfv89b7lfkn7k3zgx610ssil6k61qs1wjj31kvqpxb3pdx4kry")))) (build-system go-build-system) (arguments `(#:import-path "github.com/dlclark/regexp2")) -- cgit v1.2.3 From 4a72b9875a2755b2295be3b0a8bae7a70a82a827 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:21:04 -0700 Subject: gnu: go-gopkg-in-check-v1: Update to 1.0.0-20201130134442-10cb98267c6c. * gnu/packages/golang.scm (go-gopkg-in-check-v1): Update to 1.0.0-20201130134442-10cb98267c6c. [license]: Correct license. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 46 ++++++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 24 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index e7a1382997..46d7c4b391 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -3504,30 +3504,28 @@ (define-public go-github-com-gorhill-cronexpr license:asl2.0))))) (define-public go-gopkg-in-check-v1 - (let ((commit "788fd78401277ebd861206a03c884797c6ec5541") - (revision "1")) - (package - (name "go-gopkg-in-check-v1") - (version (git-version "1.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/go-check/check") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a")))) - (build-system go-build-system) - (arguments - '(#:import-path "gopkg.in/check.v1")) - (propagated-inputs - `(("go-github-com-kr-pretty" ,go-github-com-kr-pretty))) - (home-page "https://gopkg.in/check.v1") - (synopsis "Test framework for the Go language") - (description "This package provides a test library for the Go language.") - (license license:asl2.0)))) + (package + (name "go-gopkg-in-check-v1") + (version "1.0.0-20201130134442-10cb98267c6c") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/go-check/check") + (commit (go-version->git-ref version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jwxndf8rsyx0fgrp47d99rp55yzssmryb92jfj3yf7zd8rjjljn")))) + (build-system go-build-system) + (arguments + '(#:import-path "gopkg.in/check.v1")) + (propagated-inputs + `(("go-github-com-kr-pretty" ,go-github-com-kr-pretty))) + (home-page "https://gopkg.in/check.v1") + (synopsis "Test framework for the Go language") + (description "This package provides a test library for the Go language.") + (license license:bsd-2))) (define-public go-gopkg-in-ini-v1 (package -- cgit v1.2.3 From 457a472888d3e8171184755d53c318aa3fa99d0c Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Fri, 25 Jun 2021 00:21:05 -0700 Subject: gnu: go-etcd-io-bbolt: Update to 1.3.6. * gnu/packages/golang.scm (go-etcd-io-bbolt): Update to 1.3.6. [propagated-inputs]: Add go-golang-org-x-sys. Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 46d7c4b391..ed8f504aa1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -7464,7 +7464,7 @@ (define-public go-github-com-zalando-go-keyring (define-public go-etcd-io-bbolt (package (name "go-etcd-io-bbolt") - (version "1.3.5") + (version "1.3.6") (source (origin (method git-fetch) (uri (git-reference @@ -7473,10 +7473,12 @@ (define-public go-etcd-io-bbolt (file-name (git-file-name name version)) (sha256 (base32 - "1h64gipvcg7060byv5wjlf524kqwj12p3v08kfh4ygv46vpm8p2r")))) + "0pj5245d417za41j6p09fmkbv05797vykr1bi9a6rnwddh1dbs8d")))) (build-system go-build-system) (arguments `(#:import-path "go.etcd.io/bbolt")) + (propagated-inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) (home-page "https://pkg.go.dev/go.etcd.io/bbolt/") (synopsis "Low-level key/value store in Go") (description "This package implements a low-level key/value store in Go.") -- cgit v1.2.3 From ead6cc03c66ed31f0ab7300fab11cef3a1e459f0 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Sat, 17 Jul 2021 21:05:59 -0700 Subject: gnu: go-1.16: Honor #:parallel-build? * gnu/packages/golang.scm (go-1.16)[arguments]<#:phases>{build}: Honor parallel-build? Signed-off-by: Efraim Flashner --- gnu/packages/golang.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ed8f504aa1..89020648f0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1514,10 +1514,12 @@ (define-public go-1.16 (substitute* "time/zoneinfo_unix.go" (("/usr/share/zoneinfo/") tzdata-path))))) (replace 'build - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs outputs (parallel-build? #t) + #:allow-other-keys) ;; FIXME: Some of the .a files are not bit-reproducible. ;; (Is this still true?) - (let* ((output (assoc-ref outputs "out")) + (let* ((njobs (if parallel-build? (parallel-job-count) 1)) + (output (assoc-ref outputs "out")) (loader (string-append (assoc-ref inputs "libc") ,(glibc-dynamic-linker)))) (setenv "CC" (which "gcc")) @@ -1526,6 +1528,7 @@ (define-public go-1.16 (setenv "GOROOT" (dirname (getcwd))) (setenv "GOROOT_FINAL" output) (setenv "GOCACHE" "/tmp/go-cache") + (setenv "GOMAXPROCS" (number->string njobs)) (invoke "sh" "make.bash" "--no-banner")))) (replace 'check (lambda* (#:key target (tests? (not target)) (parallel-tests? #t) -- cgit v1.2.3 From 733ca63bcd2854757b5b1de0b71f4407f682e15c Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 5 Aug 2021 13:20:06 -0700 Subject: gnu: go-github-com-bmatcuk-doublestar: Remove test incompatible with go-1.16. * gnu/packages/golang.scm (go-github-com-bmatcuk-doublestar) [phases]{remove-incompatible-test}: New phase. Co-authored-by: Maxim Cournoyer Signed-off-by: Maxim Cournoyer --- gnu/packages/golang.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 89020648f0..c52bf72c8d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -6483,7 +6483,15 @@ (define-public go-github-com-bmatcuk-doublestar "0bk5bixl6rqa8znxghyp6zndbccx9kdyrymjahgyp6qsrp7rk144")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/bmatcuk/doublestar")) + `(#:import-path "github.com/bmatcuk/doublestar" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'remove-incompatible-test + ;; This test fails with Go 1.16. + (lambda _ + (substitute* "src/github.com/bmatcuk/doublestar/doublestar_test.go" + (("\\{\"a\\[\", \"a\", false, nil, false\\},.*") + ""))))))) (home-page "https://github.com/bmatcuk/doublestar/") (synopsis "Path pattern matching and globbing supporting doublestar") (description "@code{doublestar} is a Go implementation of path pattern -- cgit v1.2.3 From dc151c8fb116e2386b2d4ef0acfdb766b22a5907 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 5 Aug 2021 17:05:09 -0700 Subject: gnu: go-1.16: Update to 1.16.7. * gnu/packages/golang.scm (go-1.16): Update to 1.16.7. Signed-off-by: Maxim Cournoyer --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index c52bf72c8d..15f3ea46c4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1393,7 +1393,7 @@ (define-public go-1.16 (package (inherit go-1.14) (name "go") - (version "1.16.5") + (version "1.16.7") (source (origin (method git-fetch) @@ -1403,7 +1403,7 @@ (define-public go-1.16 (file-name (git-file-name name version)) (sha256 (base32 - "19a93p217h5xi2sgh34qzv24pkd4df0sw4fc5z6k47lspjp3vx2l")))) + "1id6nsavf7gm78bmzsvym135pi2xa0v75ny51xrw93j70clz9w0h")))) (arguments (substitute-keyword-arguments (package-arguments go-1.14) ((#:tests? _) #t) -- cgit v1.2.3 From 9d32e6cdad050b8c12cfda753cf4bb21910416dc Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Wed, 11 Aug 2021 13:48:40 -0400 Subject: gnu: Restore the correct order of the golang module. * gnu/packages/golang.scm: Move the Go compilers back to the beginning of the file. --- gnu/packages/golang.scm | 1488 +++++++++++++++++++++++------------------------ 1 file changed, 744 insertions(+), 744 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 15f3ea46c4..f4cd30c662 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -75,6 +75,540 @@ (define-module (gnu packages golang) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) +;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a +;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2 +;; implementation, and gccgo-5 a complete implementation of go-1.4. Ultimately +;; we hope to build go-1.5+ with a bootstrap process using gccgo-5. As of +;; go-1.5, go cannot be bootstrapped without go-1.4, so we need to use go-1.4 or +;; gccgo-5. Mips is not officially supported, but it should work if it is +;; bootstrapped. + +(define-public go-1.4 + (package + (name "go") + ;; The C-language bootstrap of Go: + ;; https://golang.org/doc/install/source#go14 + (version "1.4-bootstrap-20171003") + (source (origin + (method url-fetch) + (uri (string-append "https://storage.googleapis.com/golang/" + name version ".tar.gz")) + (sha256 + (base32 + "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl")))) + (build-system gnu-build-system) + (outputs '("out" + "doc" + "tests")) + (arguments + `(#:modules ((ice-9 match) + (guix build gnu-build-system) + (guix build utils) + (srfi srfi-1)) + #:tests? #f ; Tests are run by the all.bash script. + ,@(if (string-prefix? "aarch64-linux" (or (%current-system) + (%current-target-system))) + '(#:system "armhf-linux") + '()) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'patch-generated-file-shebangs 'chdir + (lambda _ + (chdir "src") + #t)) + (add-before 'build 'prebuild + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) + (ld (string-append (assoc-ref inputs "libc") "/lib")) + (loader (car (find-files ld "^ld-linux.+"))) + (net-base (assoc-ref inputs "net-base")) + (tzdata-path + (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) + (output (assoc-ref outputs "out"))) + + ;; Removing net/ tests, which fail when attempting to access + ;; network resources not present in the build container. + (for-each delete-file + '("net/multicast_test.go" "net/parse_test.go" + "net/port_test.go")) + + ;; Add libgcc to the RUNPATH. + (substitute* "cmd/go/build.go" + (("cgoldflags := \\[\\]string\\{\\}") + (string-append "cgoldflags := []string{" + "\"-rpath=" gcclib "\"}")) + (("ldflags := buildLdflags") + (string-append + "ldflags := buildLdflags\n" + "ldflags = append(ldflags, \"-r\")\n" + "ldflags = append(ldflags, \"" gcclib "\")\n"))) + + (substitute* "os/os_test.go" + (("/usr/bin") (getcwd)) + (("/bin/pwd") (which "pwd"))) + + ;; Disable failing tests: these tests attempt to access + ;; commands or network resources which are neither available or + ;; necessary for the build to succeed. + (for-each + (match-lambda + ((file regex) + (substitute* file + ((regex all before test_name) + (string-append before "Disabled" test_name))))) + '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") + ("net/dial_test.go" "(.+)(TestDialTimeout.+)") + ("os/os_test.go" "(.+)(TestHostname.+)") + ("time/format_test.go" "(.+)(TestParseInSydney.+)") + + ;; XXX: This test fails with tzdata 2020b and newer. Later + ;; Go releases work fine, so just disable this for the + ;; bootstrap Go. + ("time/example_test.go" "(.+)(ExampleParseInLocation.+)") + + ("os/exec/exec_test.go" "(.+)(TestEcho.+)") + ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") + ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") + ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") + ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") + ("os/exec/exec_test.go" "(.+)(TestPipes.+)") + ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") + ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)"))) + + (substitute* "net/lookup_unix.go" + (("/etc/protocols") (string-append net-base "/etc/protocols"))) + (substitute* "time/zoneinfo_unix.go" + (("/usr/share/zoneinfo/") tzdata-path)) + (substitute* (find-files "cmd" "asm.c") + (("/lib/ld-linux.*\\.so\\.[0-9]") loader)) + #t))) + + (replace 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; FIXME: Some of the .a files are not bit-reproducible. + (let* ((output (assoc-ref outputs "out"))) + (setenv "CC" (which "gcc")) + (setenv "GOOS" "linux") + (setenv "GOROOT" (dirname (getcwd))) + (setenv "GOROOT_FINAL" output) + (setenv "GO14TESTS" "1") + (invoke "sh" "all.bash")))) + + (replace 'install + (lambda* (#:key outputs inputs #:allow-other-keys) + (let* ((output (assoc-ref outputs "out")) + (doc_out (assoc-ref outputs "doc")) + (bash (string-append (assoc-ref inputs "bash") "bin/bash")) + (docs (string-append doc_out "/share/doc/" ,name "-" ,version)) + (tests (string-append + (assoc-ref outputs "tests") "/share/" ,name "-" ,version))) + (mkdir-p tests) + (copy-recursively "../test" (string-append tests "/test")) + (delete-file-recursively "../test") + (mkdir-p docs) + (copy-recursively "../api" (string-append docs "/api")) + (delete-file-recursively "../api") + (copy-recursively "../doc" (string-append docs "/doc")) + (delete-file-recursively "../doc") + + (for-each (lambda (file) + (let ((file (string-append "../" file))) + (install-file file docs) + (delete-file file))) + '("README" "CONTRIBUTORS" "AUTHORS" "PATENTS" + "LICENSE" "VERSION" "robots.txt")) + (copy-recursively "../" output) + #t)))))) + (inputs + `(("tzdata" ,tzdata) + ("pcre" ,pcre) + ("gcc:lib" ,(canonical-package gcc) "lib"))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("which" ,which) + ("net-base" ,net-base) + ("perl" ,perl))) + + (home-page "https://golang.org/") + (synopsis "Compiler and libraries for Go, a statically-typed language") + (description "Go, also commonly referred to as golang, is an imperative +programming language designed primarily for systems programming. Go is a +compiled, statically typed language in the tradition of C and C++, but adds +garbage collection, various safety features, and concurrent programming features +in the style of communicating sequential processes (@dfn{CSP}).") + (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux" "aarch64-linux")) + (license license:bsd-3))) + +(define-public go-1.14 + (package + (inherit go-1.4) + (name "go") + (version "1.14.15") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/go") + (commit (string-append "go" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1crh90qkvhlx23hwsi4wxy3l3h8973lr18135y6h1nnzzwr3n3ps")))) + (arguments + (substitute-keyword-arguments (package-arguments go-1.4) + ((#:system system) + (if (string-prefix? "aarch64-linux" (or (%current-system) + (%current-target-system))) + "aarch64-linux" + system)) + ((#:phases phases) + `(modify-phases ,phases + (replace 'prebuild + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) + (ld (string-append (assoc-ref inputs "libc") "/lib")) + (loader (car (find-files ld "^ld-linux.+"))) + (net-base (assoc-ref inputs "net-base")) + (tzdata-path + (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) + (output (assoc-ref outputs "out"))) + + ;; Having the patch in the 'patches' field of breaks + ;; the 'TestServeContent' test due to the fact that + ;; timestamps are reset. Thus, apply it from here. + (invoke "patch" "-p2" "--force" "-i" + (assoc-ref inputs "go-skip-gc-test.patch")) + + ;; A side effect of these test scripts is testing + ;; cgo. Attempts at using cgo flags and directives with these + ;; scripts as specified here (https://golang.org/cmd/cgo/) + ;; have not worked. The tests continue to state that they can + ;; not find object files/headers despite being present. + (for-each + delete-file + '("cmd/go/testdata/script/mod_case_cgo.txt" + "cmd/go/testdata/script/list_find.txt" + "cmd/go/testdata/script/list_compiled_imports.txt" + "cmd/go/testdata/script/cgo_syso_issue29253.txt" + "cmd/go/testdata/script/cover_cgo.txt" + "cmd/go/testdata/script/cover_cgo_xtest.txt" + "cmd/go/testdata/script/cover_cgo_extra_test.txt" + "cmd/go/testdata/script/cover_cgo_extra_file.txt" + "cmd/go/testdata/script/cgo_path_space.txt" + "cmd/go/testdata/script/ldflag.txt" + "cmd/go/testdata/script/cgo_path.txt")) + + (for-each make-file-writable (find-files ".")) + + (substitute* "os/os_test.go" + (("/usr/bin") (getcwd)) + (("/bin/pwd") (which "pwd")) + (("/bin/sh") (which "sh"))) + + ;; Add libgcc to runpath + (substitute* "cmd/link/internal/ld/lib.go" + (("!rpath.set") "true")) + (substitute* "cmd/go/internal/work/gccgo.go" + (("cgoldflags := \\[\\]string\\{\\}") + (string-append "cgoldflags := []string{" + "\"-rpath=" gcclib "\"" + "}")) + (("\"-lgcc_s\", ") + (string-append + "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", "))) + (substitute* "cmd/go/internal/work/gc.go" + (("ldflags = setextld\\(ldflags, compiler\\)") + (string-append + "ldflags = setextld(ldflags, compiler)\n" + "ldflags = append(ldflags, \"-r\")\n" + "ldflags = append(ldflags, \"" gcclib "\")\n"))) + + ;; Disable failing tests: these tests attempt to access + ;; commands or network resources which are neither available + ;; nor necessary for the build to succeed. + (for-each + (match-lambda + ((file regex) + (substitute* file + ((regex all before test_name) + (string-append before "Disabled" test_name))))) + '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") + ("net/dial_test.go" "(.+)(TestDialTimeout.+)") + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)") + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)") + ;; 127.0.0.1 doesn't exist + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)") + ;; 127.0.0.1 doesn't exist + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)") + ;; /etc/services doesn't exist + ("net/parse_test.go" "(.+)(TestReadLine.+)") + ("os/os_test.go" "(.+)(TestHostname.+)") + ;; The user's directory doesn't exist + ("os/os_test.go" "(.+)(TestUserHomeDir.+)") + ("time/format_test.go" "(.+)(TestParseInSydney.+)") + ("time/format_test.go" "(.+)(TestParseInLocation.+)") + ("os/exec/exec_test.go" "(.+)(TestEcho.+)") + ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") + ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") + ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") + ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") + ("os/exec/exec_test.go" "(.+)(TestPipes.+)") + ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") + ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)") + ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)") + ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)") + ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)") + ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)") + ("net/lookup_test.go" "(.+)(TestLookupPort.+)") + ("syscall/exec_linux_test.go" + "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)"))) + + ;; These tests fail on aarch64-linux + (substitute* "cmd/dist/test.go" + (("t.registerHostTest\\(\"testsanitizers/msan.*") "")) + + ;; fix shebang for testar script + ;; note the target script is generated at build time. + (substitute* "../misc/cgo/testcarchive/carchive_test.go" + (("#!/usr/bin/env") (string-append "#!" (which "env")))) + + (substitute* "net/lookup_unix.go" + (("/etc/protocols") (string-append net-base "/etc/protocols"))) + (substitute* "net/port_unix.go" + (("/etc/services") (string-append net-base "/etc/services"))) + (substitute* "time/zoneinfo_unix.go" + (("/usr/share/zoneinfo/") tzdata-path)) + (substitute* (find-files "cmd" "\\.go") + (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader)) + #t))) + (add-before 'build 'set-bootstrap-variables + (lambda* (#:key outputs inputs #:allow-other-keys) + ;; Tell the build system where to find the bootstrap Go. + (let ((go (assoc-ref inputs "go"))) + (setenv "GOROOT_BOOTSTRAP" go) + (setenv "GOGC" "400") + #t))) + (replace 'build + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; FIXME: Some of the .a files are not bit-reproducible. + (let* ((output (assoc-ref outputs "out"))) + (setenv "CC" (which "gcc")) + (setenv "GOOS" "linux") + (setenv "GOROOT" (dirname (getcwd))) + (setenv "GOROOT_FINAL" output) + (setenv "CGO_ENABLED" "1") + (invoke "sh" "all.bash")))) + (replace 'install + ;; TODO: Most of this could be factorized with Go 1.4. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((output (assoc-ref outputs "out")) + (doc_out (assoc-ref outputs "doc")) + (docs (string-append doc_out "/share/doc/" ,name "-" ,version)) + (src (string-append + (assoc-ref outputs "tests") "/share/" ,name "-" ,version))) + ;; Prevent installation of the build cache, which contains + ;; store references to most of the tools used to build Go and + ;; would unnecessarily increase the size of Go's closure if it + ;; was installed. + (delete-file-recursively "../pkg/obj") + + (mkdir-p src) + (copy-recursively "../test" (string-append src "/test")) + (delete-file-recursively "../test") + (mkdir-p docs) + (copy-recursively "../api" (string-append docs "/api")) + (delete-file-recursively "../api") + (copy-recursively "../doc" (string-append docs "/doc")) + (delete-file-recursively "../doc") + + (for-each + (lambda (file) + (let* ((filein (string-append "../" file)) + (fileout (string-append docs "/" file))) + (copy-file filein fileout) + (delete-file filein))) + ;; Note the slightly different file names compared to 1.4. + '("README.md" "CONTRIBUTORS" "AUTHORS" "PATENTS" + "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt")) + + (copy-recursively "../" output) + #t))))))) + (native-inputs + `(("go" ,go-1.4) + ("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch")) + ,@(match (%current-system) + ((or "armhf-linux" "aarch64-linux") + `(("gold" ,binutils-gold))) + (_ `())) + ,@(package-native-inputs go-1.4))) + (supported-systems %supported-systems))) + +(define-public go-1.16 + (package + (inherit go-1.14) + (name "go") + (version "1.16.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/go") + (commit (string-append "go" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1id6nsavf7gm78bmzsvym135pi2xa0v75ny51xrw93j70clz9w0h")))) + (arguments + (substitute-keyword-arguments (package-arguments go-1.14) + ((#:tests? _) #t) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'remove-unused-sourcecode-generators + (lambda _ + ;; Prevent perl from inclusion in closure through unused files + (for-each delete-file (find-files "src" "\\.pl$")))) + (replace 'prebuild + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) + (net-base (assoc-ref inputs "net-base")) + (tzdata-path + (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))) + + ;; Having the patch in the 'patches' field of breaks + ;; the 'TestServeContent' test due to the fact that + ;; timestamps are reset. Thus, apply it from here. + (invoke "patch" "-p2" "--force" "-i" + (assoc-ref inputs "go-skip-gc-test.patch")) + (invoke "patch" "-p2" "--force" "-i" + (assoc-ref inputs "go-fix-script-tests.patch")) + + (for-each make-file-writable (find-files ".")) + + (substitute* "os/os_test.go" + (("/usr/bin") (getcwd)) + (("/bin/sh") (which "sh"))) + + (substitute* "cmd/go/testdata/script/cgo_path_space.txt" + (("/bin/sh") (which "sh"))) + + ;; Add libgcc to runpath + (substitute* "cmd/link/internal/ld/lib.go" + (("!rpath.set") "true")) + (substitute* "cmd/go/internal/work/gccgo.go" + (("cgoldflags := \\[\\]string\\{\\}") + (string-append "cgoldflags := []string{" + "\"-Wl,-rpath=" gcclib "\"" + "}")) + (("\"-lgcc_s\", ") + (string-append + "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", "))) + (substitute* "cmd/go/internal/work/gc.go" + (("ldflags = setextld\\(ldflags, compiler\\)") + (string-append + "ldflags = setextld(ldflags, compiler)\n" + "ldflags = append(ldflags, \"-r\")\n" + "ldflags = append(ldflags, \"" gcclib "\")\n"))) + + ;; Disable failing tests: these tests attempt to access + ;; commands or network resources which are neither available + ;; nor necessary for the build to succeed. + (for-each + (match-lambda + ((file regex) + (substitute* file + ((regex all before test_name) + (string-append before "Disabled" test_name))))) + '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") + ("net/dial_test.go" "(.+)(TestDialTimeout.+)") + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)") + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)") + ;; 127.0.0.1 doesn't exist + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)") + ;; 127.0.0.1 doesn't exist + ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)") + ;; /etc/services doesn't exist + ("net/parse_test.go" "(.+)(TestReadLine.+)") + ("os/os_test.go" "(.+)(TestHostname.+)") + ;; The user's directory doesn't exist + ("os/os_test.go" "(.+)(TestUserHomeDir.+)") + ("time/format_test.go" "(.+)(TestParseInSydney.+)") + ("time/format_test.go" "(.+)(TestParseInLocation.+)") + ("os/exec/exec_test.go" "(.+)(TestEcho.+)") + ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") + ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") + ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") + ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") + ("os/exec/exec_test.go" "(.+)(TestPipes.+)") + ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") + ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)") + ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)") + ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)") + ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)") + ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)") + ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)") + ("net/lookup_test.go" "(.+)(TestLookupPort.+)") + ("syscall/exec_linux_test.go" + "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)"))) + + ;; These tests fail on aarch64-linux + (substitute* "cmd/dist/test.go" + (("t.registerHostTest\\(\"testsanitizers/msan.*") "")) + + ;; fix shebang for testar script + ;; note the target script is generated at build time. + (substitute* "../misc/cgo/testcarchive/carchive_test.go" + (("#!/usr/bin/env") (string-append "#!" (which "env")))) + + (substitute* "net/lookup_unix.go" + (("/etc/protocols") (string-append net-base "/etc/protocols"))) + (substitute* "net/port_unix.go" + (("/etc/services") (string-append net-base "/etc/services"))) + (substitute* "time/zoneinfo_unix.go" + (("/usr/share/zoneinfo/") tzdata-path))))) + (replace 'build + (lambda* (#:key inputs outputs (parallel-build? #t) + #:allow-other-keys) + ;; FIXME: Some of the .a files are not bit-reproducible. + ;; (Is this still true?) + (let* ((njobs (if parallel-build? (parallel-job-count) 1)) + (output (assoc-ref outputs "out")) + (loader (string-append (assoc-ref inputs "libc") + ,(glibc-dynamic-linker)))) + (setenv "CC" (which "gcc")) + (setenv "GO_LDSO" loader) + (setenv "GOOS" "linux") + (setenv "GOROOT" (dirname (getcwd))) + (setenv "GOROOT_FINAL" output) + (setenv "GOCACHE" "/tmp/go-cache") + (setenv "GOMAXPROCS" (number->string njobs)) + (invoke "sh" "make.bash" "--no-banner")))) + (replace 'check + (lambda* (#:key target (tests? (not target)) (parallel-tests? #t) + #:allow-other-keys) + (let* ((njobs (if parallel-tests? (parallel-job-count) 1))) + (when tests? + (setenv "GOMAXPROCS" (number->string njobs)) + (invoke "sh" "run.bash" "--no-rebuild"))))) + (add-before 'install 'unpatch-perl-shebangs + (lambda _ + ;; Rewrite references to perl input in test scripts + (substitute* "net/http/cgi/testdata/test.cgi" + (("^#!.*") "#!/usr/bin/env perl\n")))))))) + (native-inputs + `(("go-fix-script-tests.patch" ,(search-patch "go-fix-script-tests.patch")) + ,@(if (not (member (%current-system) (package-supported-systems go-1.4))) + (alist-replace "go" (list gccgo-10) (package-native-inputs go-1.14)) + (package-native-inputs go-1.14)))))) + +(define-public go go-1.14) + (define-public go-0xacab-org-leap-shapeshifter (let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474") (revision "12")) @@ -759,796 +1293,262 @@ (define-public go-github-com-operatorfoundation-obfs4 `(("go-github-com-dchest-siphash" ,go-github-com-dchest-siphash) ("go-github-com-operatorfoundation-ed25519" - ,go-github-com-operatorfoundation-ed25519) - ("go-github-com-willscott-goturn" - ,go-github-com-willscott-goturn) - ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) - ("go-golang-org-x-net" ,go-golang-org-x-net) - ("go-torproject-org-pluggable-transports-goptlib" - ,go-torproject-org-pluggable-transports-goptlib))) - (home-page "https://github.com/OperatorFoundation/obfs4") - (synopsis "Network obfourscator to scramble network traffic") - (description "Obfs4 is a look-like nothing obfuscation protocol that -incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol. -The notable differences between ScrambleSuit and obfs4 are: -@itemize -@item The handshake always does a full key exchange (no such thing as a Session -Ticket Handshake). -@item The handshake uses the Tor Project's ntor handshake with public keys -obfuscated via the Elligator 2 mapping. -@item The link layer encryption uses NaCl secret boxes (Poly1305/XSalsa20). -@end itemize") - (license license:bsd-2))) - -(define-public go-github-com-willscott-goturn - (let ((commit "19f41278d0c9251d64e0ee29f37d51e87a24a97b") - (revision "0")) - (package - (name "go-github-com-willscott-goturn") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/willscott/goturn") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0zwvhfznr84ayzknn9flh65nvqjsixisgy9fkhz2jlahl1ldqcq7")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/willscott/goturn")) - (home-page "https://github.com/willscott/goturn") - (synopsis "Go TURN dialer") - (description "GoTURN is a library providing a Go interface compatible with -the golang proxy package which connects through a TURN relay. It provides -parsing and encoding support for STUN and TURN protocols.") - (license license:bsd-3)))) - -(define-public go-torproject-org-pluggable-transports-goptlib - (package - (name "go-torproject-org-pluggable-transports-goptlib") - (version "1.1.0") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://git.torproject.org/pluggable-transports/goptlib") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1lh938194hvkf8pqgnxwf6hvjv9rv0j3kasi07r2ckrj8sxzk4jc")))) - (build-system go-build-system) - (arguments - `(#:import-path "git.torproject.org/pluggable-transports/goptlib")) - (home-page "https://gitweb.torproject.org/pluggable-transports/goptlib.git/") - (synopsis "Go pluggable transports library") - (description "GoPtLib is a library for writing Tor pluggable transports in -Go.") - (license license:cc0))) - -(define-public go-github-com-sevlyar-go-daemon - (package - (name "go-github-com-sevlyar-go-daemon") - (version "0.1.5") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/sevlyar/go-daemon") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1y3gnxaifykcjcbzx91lz9bc93b95w3xj4rjxjbii26pm3j7gqyk")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/sevlyar/go-daemon")) - (propagated-inputs - `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) - (home-page "https://github.com/sevlyar/go-daemon") - (synopsis "Library for writing system daemons") - (description "Go-Daemon is a library for writing system daemons in Go.") - (license license:expat))) - -(define-public go-github-com-keybase-go-ps - (let ((commit "91aafc93ba19d1988cff338c1929d35b6c6f5b50") - (revision "0")) - (package - (name "go-github-com-keybase-go-ps") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/keybase/go-ps") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1la7m9pd1rrij727g34k9d2iapqwrkwdkqwpkbsbcq8ig0fg634h")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/keybase/go-ps" - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-tests - (lambda* (#:key native-inputs inputs #:allow-other-keys) - (substitute* (find-files "." "test\\.go") - (("/bin/sleep" command) - (string-append - (assoc-ref (or native-inputs inputs) "coreutils") - command)))))))) - (native-inputs - `(("coreutils" ,coreutils) - ("go-github-com-stretchr-testify" - ,go-github-com-stretchr-testify))) - (home-page "https://github.com/keybase/go-ps") - (synopsis "Process list library for Go") - (description "Go-Ps is a library for Go that implements OS-specific APIs -to list and manipulate processes in a safe way.") - (license license:expat)))) - -(define-public go-github-com-apparentlymart-go-openvpn-mgmt - (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") - (revision "0")) - (package - (name "go-github-com-apparentlymart-go-openvpn-mgmt") - (version (git-version "0.0.0" revision commit)) - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/apparentlymart/go-openvpn-mgmt") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1dn431jnswg5ns1ah10wswnw6wiv48zq21zr5xp1178l4waswj7k")))) - (build-system go-build-system) - (arguments - `(#:unpack-path "github.com/apparentlymart/go-openvpn-mgmt" - #: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/apparentlymart/go-openvpn-mgmt/demux" - "github.com/apparentlymart/go-openvpn-mgmt/openvpn")))) - (replace 'check - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'check) - `(,@arguments #:import-path ,directory))) - (list - "github.com/apparentlymart/go-openvpn-mgmt/demux" - "github.com/apparentlymart/go-openvpn-mgmt/openvpn")))) - (replace 'install - (lambda arguments - (for-each - (lambda (directory) - (apply (assoc-ref %standard-phases 'install) - `(,@arguments #:import-path ,directory))) - (list - "github.com/apparentlymart/go-openvpn-mgmt/demux" - "github.com/apparentlymart/go-openvpn-mgmt/openvpn"))))))) - (home-page "https://github.com/apparentlymart/go-openvpn-mgmt") - (synopsis "Go client library for OpenVPN's management protocol") - (description "Go-OpenVPN-Mgmt implements a client for the OpenVPN -management interface. It can be used to monitor and control an OpenVPN process -running with its management port enabled.") - (license license:expat)))) + ,go-github-com-operatorfoundation-ed25519) + ("go-github-com-willscott-goturn" + ,go-github-com-willscott-goturn) + ("go-golang-org-x-crypto" ,go-golang-org-x-crypto) + ("go-golang-org-x-net" ,go-golang-org-x-net) + ("go-torproject-org-pluggable-transports-goptlib" + ,go-torproject-org-pluggable-transports-goptlib))) + (home-page "https://github.com/OperatorFoundation/obfs4") + (synopsis "Network obfourscator to scramble network traffic") + (description "Obfs4 is a look-like nothing obfuscation protocol that +incorporates ideas and concepts from Philipp Winter's ScrambleSuit protocol. +The notable differences between ScrambleSuit and obfs4 are: +@itemize +@item The handshake always does a full key exchange (no such thing as a Session +Ticket Handshake). +@item The handshake uses the Tor Project's ntor handshake with public keys +obfuscated via the Elligator 2 mapping. +@item The link layer encryption uses NaCl secret boxes (Poly1305/XSalsa20). +@end itemize") + (license license:bsd-2))) -(define-public go-github-com-emersion-go-autostart - (let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c") +(define-public go-github-com-willscott-goturn + (let ((commit "19f41278d0c9251d64e0ee29f37d51e87a24a97b") (revision "0")) (package - (name "go-github-com-emersion-go-autostart") + (name "go-github-com-willscott-goturn") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/emersion/go-autostart") + (url "https://github.com/willscott/goturn") (commit commit))) (file-name (git-file-name name version)) (sha256 - (base32 "0cqqvbzn32xv5lknfygrx01rx2sc6pi833k7008nlk9lsfgry06v")))) + (base32 "0zwvhfznr84ayzknn9flh65nvqjsixisgy9fkhz2jlahl1ldqcq7")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/emersion/go-autostart")) - (home-page "https://github.com/emersion/go-autostart") - (synopsis "Autostart library in Go") - (description "Go-Autostart is a Go library to run a command after login.") - (license license:expat)))) + `(#:import-path "github.com/willscott/goturn")) + (home-page "https://github.com/willscott/goturn") + (synopsis "Go TURN dialer") + (description "GoTURN is a library providing a Go interface compatible with +the golang proxy package which connects through a TURN relay. It provides +parsing and encoding support for STUN and TURN protocols.") + (license license:bsd-3)))) -(define-public go-github-com-dchest-siphash +(define-public go-torproject-org-pluggable-transports-goptlib (package - (name "go-github-com-dchest-siphash") - (version "1.2.1") + (name "go-torproject-org-pluggable-transports-goptlib") + (version "1.1.0") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/dchest/siphash") + (url "https://git.torproject.org/pluggable-transports/goptlib") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08s076y7vmjqnq7jz0762hkm896r6r31v8b31a3gy0n8rfa01k8k")))) + (base32 "1lh938194hvkf8pqgnxwf6hvjv9rv0j3kasi07r2ckrj8sxzk4jc")))) (build-system go-build-system) (arguments - `(#:import-path "github.com/dchest/siphash")) - (home-page "https://github.com/dchest/siphash") - (synopsis "Go library for pseudorandom functions") - (description "SipHash is a family of pseudorandom functions (PRFs) optimized -for speed on short messages.") + `(#:import-path "git.torproject.org/pluggable-transports/goptlib")) + (home-page "https://gitweb.torproject.org/pluggable-transports/goptlib.git/") + (synopsis "Go pluggable transports library") + (description "GoPtLib is a library for writing Tor pluggable transports in +Go.") (license license:cc0))) -(define-public go-github-com-rakyll-statik - (package - (name "go-github-com-rakyll-statik") - (version "0.1.7") - (source - (origin - (method git-fetch) - (uri - (git-reference - (url "https://github.com/rakyll/statik") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0y0kbzma55vmyqhyrw9ssgvxn6nw7d0zg72a7nz8vp1zly4hs6va")))) - (build-system go-build-system) - (arguments - `(#:import-path "github.com/rakyll/statik")) - (home-page "https://github.com/rakyll/statik/") - (synopsis "Embed files into a Go executable") - (description "Statik allows you to embed a directory of static files into -your Go binary to be later served from an http.FileSystem.") - (license license:asl2.0))) - -;; According to https://golang.org/doc/install/gccgo, gccgo-4.8.2 includes a -;; complete go-1.1.2 implementation, gccgo-4.9 includes a complete go-1.2 -;; implementation, and gccgo-5 a complete implementation of go-1.4. Ultimately -;; we hope to build go-1.5+ with a bootstrap process using gccgo-5. As of -;; go-1.5, go cannot be bootstrapped without go-1.4, so we need to use go-1.4 or -;; gccgo-5. Mips is not officially supported, but it should work if it is -;; bootstrapped. - -(define-public go-1.4 - (package - (name "go") - ;; The C-language bootstrap of Go: - ;; https://golang.org/doc/install/source#go14 - (version "1.4-bootstrap-20171003") - (source (origin - (method url-fetch) - (uri (string-append "https://storage.googleapis.com/golang/" - name version ".tar.gz")) - (sha256 - (base32 - "0liybk5z00hizsb5ypkbhqcawnwwa6mkwgvjjg4y3jm3ndg5pzzl")))) - (build-system gnu-build-system) - (outputs '("out" - "doc" - "tests")) - (arguments - `(#:modules ((ice-9 match) - (guix build gnu-build-system) - (guix build utils) - (srfi srfi-1)) - #:tests? #f ; Tests are run by the all.bash script. - ,@(if (string-prefix? "aarch64-linux" (or (%current-system) - (%current-target-system))) - '(#:system "armhf-linux") - '()) - #:phases - (modify-phases %standard-phases - (delete 'configure) - (add-after 'patch-generated-file-shebangs 'chdir - (lambda _ - (chdir "src") - #t)) - (add-before 'build 'prebuild - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) - (ld (string-append (assoc-ref inputs "libc") "/lib")) - (loader (car (find-files ld "^ld-linux.+"))) - (net-base (assoc-ref inputs "net-base")) - (tzdata-path - (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) - (output (assoc-ref outputs "out"))) - - ;; Removing net/ tests, which fail when attempting to access - ;; network resources not present in the build container. - (for-each delete-file - '("net/multicast_test.go" "net/parse_test.go" - "net/port_test.go")) - - ;; Add libgcc to the RUNPATH. - (substitute* "cmd/go/build.go" - (("cgoldflags := \\[\\]string\\{\\}") - (string-append "cgoldflags := []string{" - "\"-rpath=" gcclib "\"}")) - (("ldflags := buildLdflags") - (string-append - "ldflags := buildLdflags\n" - "ldflags = append(ldflags, \"-r\")\n" - "ldflags = append(ldflags, \"" gcclib "\")\n"))) - - (substitute* "os/os_test.go" - (("/usr/bin") (getcwd)) - (("/bin/pwd") (which "pwd"))) - - ;; Disable failing tests: these tests attempt to access - ;; commands or network resources which are neither available or - ;; necessary for the build to succeed. - (for-each - (match-lambda - ((file regex) - (substitute* file - ((regex all before test_name) - (string-append before "Disabled" test_name))))) - '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") - ("net/dial_test.go" "(.+)(TestDialTimeout.+)") - ("os/os_test.go" "(.+)(TestHostname.+)") - ("time/format_test.go" "(.+)(TestParseInSydney.+)") - - ;; XXX: This test fails with tzdata 2020b and newer. Later - ;; Go releases work fine, so just disable this for the - ;; bootstrap Go. - ("time/example_test.go" "(.+)(ExampleParseInLocation.+)") - - ("os/exec/exec_test.go" "(.+)(TestEcho.+)") - ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") - ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") - ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") - ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") - ("os/exec/exec_test.go" "(.+)(TestPipes.+)") - ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") - ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") - ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)"))) - - (substitute* "net/lookup_unix.go" - (("/etc/protocols") (string-append net-base "/etc/protocols"))) - (substitute* "time/zoneinfo_unix.go" - (("/usr/share/zoneinfo/") tzdata-path)) - (substitute* (find-files "cmd" "asm.c") - (("/lib/ld-linux.*\\.so\\.[0-9]") loader)) - #t))) - - (replace 'build - (lambda* (#:key inputs outputs #:allow-other-keys) - ;; FIXME: Some of the .a files are not bit-reproducible. - (let* ((output (assoc-ref outputs "out"))) - (setenv "CC" (which "gcc")) - (setenv "GOOS" "linux") - (setenv "GOROOT" (dirname (getcwd))) - (setenv "GOROOT_FINAL" output) - (setenv "GO14TESTS" "1") - (invoke "sh" "all.bash")))) - - (replace 'install - (lambda* (#:key outputs inputs #:allow-other-keys) - (let* ((output (assoc-ref outputs "out")) - (doc_out (assoc-ref outputs "doc")) - (bash (string-append (assoc-ref inputs "bash") "bin/bash")) - (docs (string-append doc_out "/share/doc/" ,name "-" ,version)) - (tests (string-append - (assoc-ref outputs "tests") "/share/" ,name "-" ,version))) - (mkdir-p tests) - (copy-recursively "../test" (string-append tests "/test")) - (delete-file-recursively "../test") - (mkdir-p docs) - (copy-recursively "../api" (string-append docs "/api")) - (delete-file-recursively "../api") - (copy-recursively "../doc" (string-append docs "/doc")) - (delete-file-recursively "../doc") - - (for-each (lambda (file) - (let ((file (string-append "../" file))) - (install-file file docs) - (delete-file file))) - '("README" "CONTRIBUTORS" "AUTHORS" "PATENTS" - "LICENSE" "VERSION" "robots.txt")) - (copy-recursively "../" output) - #t)))))) - (inputs - `(("tzdata" ,tzdata) - ("pcre" ,pcre) - ("gcc:lib" ,(canonical-package gcc) "lib"))) - (native-inputs - `(("pkg-config" ,pkg-config) - ("which" ,which) - ("net-base" ,net-base) - ("perl" ,perl))) - - (home-page "https://golang.org/") - (synopsis "Compiler and libraries for Go, a statically-typed language") - (description "Go, also commonly referred to as golang, is an imperative -programming language designed primarily for systems programming. Go is a -compiled, statically typed language in the tradition of C and C++, but adds -garbage collection, various safety features, and concurrent programming features -in the style of communicating sequential processes (@dfn{CSP}).") - (supported-systems '("x86_64-linux" "i686-linux" "armhf-linux" "aarch64-linux")) - (license license:bsd-3))) - -(define-public go-1.14 - (package - (inherit go-1.4) - (name "go") - (version "1.14.15") +(define-public go-github-com-sevlyar-go-daemon + (package + (name "go-github-com-sevlyar-go-daemon") + (version "0.1.5") (source (origin (method git-fetch) - (uri (git-reference - (url "https://github.com/golang/go") - (commit (string-append "go" version)))) + (uri + (git-reference + (url "https://github.com/sevlyar/go-daemon") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "1crh90qkvhlx23hwsi4wxy3l3h8973lr18135y6h1nnzzwr3n3ps")))) + (base32 "1y3gnxaifykcjcbzx91lz9bc93b95w3xj4rjxjbii26pm3j7gqyk")))) + (build-system go-build-system) (arguments - (substitute-keyword-arguments (package-arguments go-1.4) - ((#:system system) - (if (string-prefix? "aarch64-linux" (or (%current-system) - (%current-target-system))) - "aarch64-linux" - system)) - ((#:phases phases) - `(modify-phases ,phases - (replace 'prebuild - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) - (ld (string-append (assoc-ref inputs "libc") "/lib")) - (loader (car (find-files ld "^ld-linux.+"))) - (net-base (assoc-ref inputs "net-base")) - (tzdata-path - (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")) - (output (assoc-ref outputs "out"))) - - ;; Having the patch in the 'patches' field of breaks - ;; the 'TestServeContent' test due to the fact that - ;; timestamps are reset. Thus, apply it from here. - (invoke "patch" "-p2" "--force" "-i" - (assoc-ref inputs "go-skip-gc-test.patch")) - - ;; A side effect of these test scripts is testing - ;; cgo. Attempts at using cgo flags and directives with these - ;; scripts as specified here (https://golang.org/cmd/cgo/) - ;; have not worked. The tests continue to state that they can - ;; not find object files/headers despite being present. - (for-each - delete-file - '("cmd/go/testdata/script/mod_case_cgo.txt" - "cmd/go/testdata/script/list_find.txt" - "cmd/go/testdata/script/list_compiled_imports.txt" - "cmd/go/testdata/script/cgo_syso_issue29253.txt" - "cmd/go/testdata/script/cover_cgo.txt" - "cmd/go/testdata/script/cover_cgo_xtest.txt" - "cmd/go/testdata/script/cover_cgo_extra_test.txt" - "cmd/go/testdata/script/cover_cgo_extra_file.txt" - "cmd/go/testdata/script/cgo_path_space.txt" - "cmd/go/testdata/script/ldflag.txt" - "cmd/go/testdata/script/cgo_path.txt")) - - (for-each make-file-writable (find-files ".")) - - (substitute* "os/os_test.go" - (("/usr/bin") (getcwd)) - (("/bin/pwd") (which "pwd")) - (("/bin/sh") (which "sh"))) - - ;; Add libgcc to runpath - (substitute* "cmd/link/internal/ld/lib.go" - (("!rpath.set") "true")) - (substitute* "cmd/go/internal/work/gccgo.go" - (("cgoldflags := \\[\\]string\\{\\}") - (string-append "cgoldflags := []string{" - "\"-rpath=" gcclib "\"" - "}")) - (("\"-lgcc_s\", ") - (string-append - "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", "))) - (substitute* "cmd/go/internal/work/gc.go" - (("ldflags = setextld\\(ldflags, compiler\\)") - (string-append - "ldflags = setextld(ldflags, compiler)\n" - "ldflags = append(ldflags, \"-r\")\n" - "ldflags = append(ldflags, \"" gcclib "\")\n"))) - - ;; Disable failing tests: these tests attempt to access - ;; commands or network resources which are neither available - ;; nor necessary for the build to succeed. - (for-each - (match-lambda - ((file regex) - (substitute* file - ((regex all before test_name) - (string-append before "Disabled" test_name))))) - '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") - ("net/dial_test.go" "(.+)(TestDialTimeout.+)") - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)") - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)") - ;; 127.0.0.1 doesn't exist - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)") - ;; 127.0.0.1 doesn't exist - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)") - ;; /etc/services doesn't exist - ("net/parse_test.go" "(.+)(TestReadLine.+)") - ("os/os_test.go" "(.+)(TestHostname.+)") - ;; The user's directory doesn't exist - ("os/os_test.go" "(.+)(TestUserHomeDir.+)") - ("time/format_test.go" "(.+)(TestParseInSydney.+)") - ("time/format_test.go" "(.+)(TestParseInLocation.+)") - ("os/exec/exec_test.go" "(.+)(TestEcho.+)") - ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") - ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") - ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") - ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") - ("os/exec/exec_test.go" "(.+)(TestPipes.+)") - ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") - ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)") - ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") - ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)") - ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)") - ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)") - ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)") - ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)") - ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)") - ("net/lookup_test.go" "(.+)(TestLookupPort.+)") - ("syscall/exec_linux_test.go" - "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)"))) - - ;; These tests fail on aarch64-linux - (substitute* "cmd/dist/test.go" - (("t.registerHostTest\\(\"testsanitizers/msan.*") "")) - - ;; fix shebang for testar script - ;; note the target script is generated at build time. - (substitute* "../misc/cgo/testcarchive/carchive_test.go" - (("#!/usr/bin/env") (string-append "#!" (which "env")))) - - (substitute* "net/lookup_unix.go" - (("/etc/protocols") (string-append net-base "/etc/protocols"))) - (substitute* "net/port_unix.go" - (("/etc/services") (string-append net-base "/etc/services"))) - (substitute* "time/zoneinfo_unix.go" - (("/usr/share/zoneinfo/") tzdata-path)) - (substitute* (find-files "cmd" "\\.go") - (("/lib(64)?/ld-linux.*\\.so\\.[0-9]") loader)) - #t))) - (add-before 'build 'set-bootstrap-variables - (lambda* (#:key outputs inputs #:allow-other-keys) - ;; Tell the build system where to find the bootstrap Go. - (let ((go (assoc-ref inputs "go"))) - (setenv "GOROOT_BOOTSTRAP" go) - (setenv "GOGC" "400") - #t))) - (replace 'build - (lambda* (#:key inputs outputs #:allow-other-keys) - ;; FIXME: Some of the .a files are not bit-reproducible. - (let* ((output (assoc-ref outputs "out"))) - (setenv "CC" (which "gcc")) - (setenv "GOOS" "linux") - (setenv "GOROOT" (dirname (getcwd))) - (setenv "GOROOT_FINAL" output) - (setenv "CGO_ENABLED" "1") - (invoke "sh" "all.bash")))) - (replace 'install - ;; TODO: Most of this could be factorized with Go 1.4. - (lambda* (#:key outputs #:allow-other-keys) - (let* ((output (assoc-ref outputs "out")) - (doc_out (assoc-ref outputs "doc")) - (docs (string-append doc_out "/share/doc/" ,name "-" ,version)) - (src (string-append - (assoc-ref outputs "tests") "/share/" ,name "-" ,version))) - ;; Prevent installation of the build cache, which contains - ;; store references to most of the tools used to build Go and - ;; would unnecessarily increase the size of Go's closure if it - ;; was installed. - (delete-file-recursively "../pkg/obj") + `(#:import-path "github.com/sevlyar/go-daemon")) + (propagated-inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (home-page "https://github.com/sevlyar/go-daemon") + (synopsis "Library for writing system daemons") + (description "Go-Daemon is a library for writing system daemons in Go.") + (license license:expat))) - (mkdir-p src) - (copy-recursively "../test" (string-append src "/test")) - (delete-file-recursively "../test") - (mkdir-p docs) - (copy-recursively "../api" (string-append docs "/api")) - (delete-file-recursively "../api") - (copy-recursively "../doc" (string-append docs "/doc")) - (delete-file-recursively "../doc") +(define-public go-github-com-keybase-go-ps + (let ((commit "91aafc93ba19d1988cff338c1929d35b6c6f5b50") + (revision "0")) + (package + (name "go-github-com-keybase-go-ps") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/keybase/go-ps") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1la7m9pd1rrij727g34k9d2iapqwrkwdkqwpkbsbcq8ig0fg634h")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/keybase/go-ps" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-tests + (lambda* (#:key native-inputs inputs #:allow-other-keys) + (substitute* (find-files "." "test\\.go") + (("/bin/sleep" command) + (string-append + (assoc-ref (or native-inputs inputs) "coreutils") + command)))))))) + (native-inputs + `(("coreutils" ,coreutils) + ("go-github-com-stretchr-testify" + ,go-github-com-stretchr-testify))) + (home-page "https://github.com/keybase/go-ps") + (synopsis "Process list library for Go") + (description "Go-Ps is a library for Go that implements OS-specific APIs +to list and manipulate processes in a safe way.") + (license license:expat)))) - (for-each - (lambda (file) - (let* ((filein (string-append "../" file)) - (fileout (string-append docs "/" file))) - (copy-file filein fileout) - (delete-file filein))) - ;; Note the slightly different file names compared to 1.4. - '("README.md" "CONTRIBUTORS" "AUTHORS" "PATENTS" - "LICENSE" "VERSION" "CONTRIBUTING.md" "robots.txt")) +(define-public go-github-com-apparentlymart-go-openvpn-mgmt + (let ((commit "4d2ce95ae600ee04eeb020ee0997aabb82752210") + (revision "0")) + (package + (name "go-github-com-apparentlymart-go-openvpn-mgmt") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/apparentlymart/go-openvpn-mgmt") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1dn431jnswg5ns1ah10wswnw6wiv48zq21zr5xp1178l4waswj7k")))) + (build-system go-build-system) + (arguments + `(#:unpack-path "github.com/apparentlymart/go-openvpn-mgmt" + #: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/apparentlymart/go-openvpn-mgmt/demux" + "github.com/apparentlymart/go-openvpn-mgmt/openvpn")))) + (replace 'check + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'check) + `(,@arguments #:import-path ,directory))) + (list + "github.com/apparentlymart/go-openvpn-mgmt/demux" + "github.com/apparentlymart/go-openvpn-mgmt/openvpn")))) + (replace 'install + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'install) + `(,@arguments #:import-path ,directory))) + (list + "github.com/apparentlymart/go-openvpn-mgmt/demux" + "github.com/apparentlymart/go-openvpn-mgmt/openvpn"))))))) + (home-page "https://github.com/apparentlymart/go-openvpn-mgmt") + (synopsis "Go client library for OpenVPN's management protocol") + (description "Go-OpenVPN-Mgmt implements a client for the OpenVPN +management interface. It can be used to monitor and control an OpenVPN process +running with its management port enabled.") + (license license:expat)))) - (copy-recursively "../" output) - #t))))))) - (native-inputs - `(("go" ,go-1.4) - ("go-skip-gc-test.patch" ,(search-patch "go-skip-gc-test.patch")) - ,@(match (%current-system) - ((or "armhf-linux" "aarch64-linux") - `(("gold" ,binutils-gold))) - (_ `())) - ,@(package-native-inputs go-1.4))) - (supported-systems %supported-systems))) +(define-public go-github-com-emersion-go-autostart + (let ((commit "00ed301c8e9ae79e82878c6361c709983ac5dd2c") + (revision "0")) + (package + (name "go-github-com-emersion-go-autostart") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/emersion/go-autostart") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0cqqvbzn32xv5lknfygrx01rx2sc6pi833k7008nlk9lsfgry06v")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/emersion/go-autostart")) + (home-page "https://github.com/emersion/go-autostart") + (synopsis "Autostart library in Go") + (description "Go-Autostart is a Go library to run a command after login.") + (license license:expat)))) -(define-public go-1.16 +(define-public go-github-com-dchest-siphash (package - (inherit go-1.14) - (name "go") - (version "1.16.7") + (name "go-github-com-dchest-siphash") + (version "1.2.1") (source (origin (method git-fetch) - (uri (git-reference - (url "https://github.com/golang/go") - (commit (string-append "go" version)))) + (uri + (git-reference + (url "https://github.com/dchest/siphash") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 - "1id6nsavf7gm78bmzsvym135pi2xa0v75ny51xrw93j70clz9w0h")))) + (base32 "08s076y7vmjqnq7jz0762hkm896r6r31v8b31a3gy0n8rfa01k8k")))) + (build-system go-build-system) (arguments - (substitute-keyword-arguments (package-arguments go-1.14) - ((#:tests? _) #t) - ((#:phases phases) - `(modify-phases ,phases - (add-after 'unpack 'remove-unused-sourcecode-generators - (lambda _ - ;; Prevent perl from inclusion in closure through unused files - (for-each delete-file (find-files "src" "\\.pl$")))) - (replace 'prebuild - (lambda* (#:key inputs outputs #:allow-other-keys) - (let* ((gcclib (string-append (assoc-ref inputs "gcc:lib") "/lib")) - (net-base (assoc-ref inputs "net-base")) - (tzdata-path - (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo"))) - - ;; Having the patch in the 'patches' field of breaks - ;; the 'TestServeContent' test due to the fact that - ;; timestamps are reset. Thus, apply it from here. - (invoke "patch" "-p2" "--force" "-i" - (assoc-ref inputs "go-skip-gc-test.patch")) - (invoke "patch" "-p2" "--force" "-i" - (assoc-ref inputs "go-fix-script-tests.patch")) - - (for-each make-file-writable (find-files ".")) - - (substitute* "os/os_test.go" - (("/usr/bin") (getcwd)) - (("/bin/sh") (which "sh"))) - - (substitute* "cmd/go/testdata/script/cgo_path_space.txt" - (("/bin/sh") (which "sh"))) - - ;; Add libgcc to runpath - (substitute* "cmd/link/internal/ld/lib.go" - (("!rpath.set") "true")) - (substitute* "cmd/go/internal/work/gccgo.go" - (("cgoldflags := \\[\\]string\\{\\}") - (string-append "cgoldflags := []string{" - "\"-Wl,-rpath=" gcclib "\"" - "}")) - (("\"-lgcc_s\", ") - (string-append - "\"-Wl,-rpath=" gcclib "\", \"-lgcc_s\", "))) - (substitute* "cmd/go/internal/work/gc.go" - (("ldflags = setextld\\(ldflags, compiler\\)") - (string-append - "ldflags = setextld(ldflags, compiler)\n" - "ldflags = append(ldflags, \"-r\")\n" - "ldflags = append(ldflags, \"" gcclib "\")\n"))) - - ;; Disable failing tests: these tests attempt to access - ;; commands or network resources which are neither available - ;; nor necessary for the build to succeed. - (for-each - (match-lambda - ((file regex) - (substitute* file - ((regex all before test_name) - (string-append before "Disabled" test_name))))) - '(("net/net_test.go" "(.+)(TestShutdownUnix.+)") - ("net/dial_test.go" "(.+)(TestDialTimeout.+)") - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPort.+)") - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPortWithCancel.+)") - ;; 127.0.0.1 doesn't exist - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTR.+)") - ;; 127.0.0.1 doesn't exist - ("net/cgo_unix_test.go" "(.+)(TestCgoLookupPTRWithCancel.+)") - ;; /etc/services doesn't exist - ("net/parse_test.go" "(.+)(TestReadLine.+)") - ("os/os_test.go" "(.+)(TestHostname.+)") - ;; The user's directory doesn't exist - ("os/os_test.go" "(.+)(TestUserHomeDir.+)") - ("time/format_test.go" "(.+)(TestParseInSydney.+)") - ("time/format_test.go" "(.+)(TestParseInLocation.+)") - ("os/exec/exec_test.go" "(.+)(TestEcho.+)") - ("os/exec/exec_test.go" "(.+)(TestCommandRelativeName.+)") - ("os/exec/exec_test.go" "(.+)(TestCatStdin.+)") - ("os/exec/exec_test.go" "(.+)(TestCatGoodAndBadFile.+)") - ("os/exec/exec_test.go" "(.+)(TestExitStatus.+)") - ("os/exec/exec_test.go" "(.+)(TestPipes.+)") - ("os/exec/exec_test.go" "(.+)(TestStdinClose.+)") - ("os/exec/exec_test.go" "(.+)(TestIgnorePipeErrorOnSuccess.+)") - ("syscall/syscall_unix_test.go" "(.+)(TestPassFD\\(.+)") - ("os/exec/exec_test.go" "(.+)(TestExtraFiles/areturn.+)") - ("cmd/go/go_test.go" "(.+)(TestCoverageWithCgo.+)") - ("cmd/go/go_test.go" "(.+)(TestTwoPkgConfigs.+)") - ("os/exec/exec_test.go" "(.+)(TestOutputStderrCapture.+)") - ("os/exec/exec_test.go" "(.+)(TestExtraFiles.+)") - ("os/exec/exec_test.go" "(.+)(TestExtraFilesRace.+)") - ("net/lookup_test.go" "(.+)(TestLookupPort.+)") - ("syscall/exec_linux_test.go" - "(.+)(TestCloneNEWUSERAndRemapNoRootDisableSetgroups.+)"))) - - ;; These tests fail on aarch64-linux - (substitute* "cmd/dist/test.go" - (("t.registerHostTest\\(\"testsanitizers/msan.*") "")) - - ;; fix shebang for testar script - ;; note the target script is generated at build time. - (substitute* "../misc/cgo/testcarchive/carchive_test.go" - (("#!/usr/bin/env") (string-append "#!" (which "env")))) - - (substitute* "net/lookup_unix.go" - (("/etc/protocols") (string-append net-base "/etc/protocols"))) - (substitute* "net/port_unix.go" - (("/etc/services") (string-append net-base "/etc/services"))) - (substitute* "time/zoneinfo_unix.go" - (("/usr/share/zoneinfo/") tzdata-path))))) - (replace 'build - (lambda* (#:key inputs outputs (parallel-build? #t) - #:allow-other-keys) - ;; FIXME: Some of the .a files are not bit-reproducible. - ;; (Is this still true?) - (let* ((njobs (if parallel-build? (parallel-job-count) 1)) - (output (assoc-ref outputs "out")) - (loader (string-append (assoc-ref inputs "libc") - ,(glibc-dynamic-linker)))) - (setenv "CC" (which "gcc")) - (setenv "GO_LDSO" loader) - (setenv "GOOS" "linux") - (setenv "GOROOT" (dirname (getcwd))) - (setenv "GOROOT_FINAL" output) - (setenv "GOCACHE" "/tmp/go-cache") - (setenv "GOMAXPROCS" (number->string njobs)) - (invoke "sh" "make.bash" "--no-banner")))) - (replace 'check - (lambda* (#:key target (tests? (not target)) (parallel-tests? #t) - #:allow-other-keys) - (let* ((njobs (if parallel-tests? (parallel-job-count) 1))) - (when tests? - (setenv "GOMAXPROCS" (number->string njobs)) - (invoke "sh" "run.bash" "--no-rebuild"))))) - (add-before 'install 'unpatch-perl-shebangs - (lambda _ - ;; Rewrite references to perl input in test scripts - (substitute* "net/http/cgi/testdata/test.cgi" - (("^#!.*") "#!/usr/bin/env perl\n")))))))) - (native-inputs - `(("go-fix-script-tests.patch" ,(search-patch "go-fix-script-tests.patch")) - ,@(if (not (member (%current-system) (package-supported-systems go-1.4))) - (alist-replace "go" (list gccgo-10) (package-native-inputs go-1.14)) - (package-native-inputs go-1.14)))))) + `(#:import-path "github.com/dchest/siphash")) + (home-page "https://github.com/dchest/siphash") + (synopsis "Go library for pseudorandom functions") + (description "SipHash is a family of pseudorandom functions (PRFs) optimized +for speed on short messages.") + (license license:cc0))) -(define-public go go-1.14) +(define-public go-github-com-rakyll-statik + (package + (name "go-github-com-rakyll-statik") + (version "0.1.7") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/rakyll/statik") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0y0kbzma55vmyqhyrw9ssgvxn6nw7d0zg72a7nz8vp1zly4hs6va")))) + (build-system go-build-system) + (arguments + `(#:import-path "github.com/rakyll/statik")) + (home-page "https://github.com/rakyll/statik/") + (synopsis "Embed files into a Go executable") + (description "Statik allows you to embed a directory of static files into +your Go binary to be later served from an http.FileSystem.") + (license license:asl2.0))) (define-public go-github-com-alsm-ioprogress (let ((commit "063c3725f436e7fba0c8f588547bee21ffec7ac5") -- cgit v1.2.3 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 From 14d8413fc53aac86bd1fa4b7f94969ed62c221b6 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 9 Sep 2021 12:54:43 -0700 Subject: gnu: go-1.16: Update to 1.16.8. * gnu/packages/golang.scm (go-1.16): Update to 1.16.8. Signed-off-by: Leo Famulari --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b6e8b84749..3c151b716e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -453,7 +453,7 @@ (define-public go-1.16 (package (inherit go-1.14) (name "go") - (version "1.16.7") + (version "1.16.8") (source (origin (method git-fetch) @@ -463,7 +463,7 @@ (define-public go-1.16 (file-name (git-file-name name version)) (sha256 (base32 - "1id6nsavf7gm78bmzsvym135pi2xa0v75ny51xrw93j70clz9w0h")))) + "00zv65v09kr2cljxxqypk980r4b4aqjijhbw4ikppn8km68h831n")))) (arguments (substitute-keyword-arguments (package-arguments go-1.14) ((#:tests? _) #t) -- cgit v1.2.3 From d36c73b8a8f52732753c11125cfb4d8bf735f8b7 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 2 Sep 2021 15:09:27 -0700 Subject: gnu: Add go-1.17. * gnu/packages.golang.scm (go-1.17): New variable. Signed-off-by: Leo Famulari --- gnu/packages/golang.scm | 182 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3c151b716e..b051ed2990 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -608,6 +608,188 @@ (define-public go-1.16 (alist-replace "go" (list gccgo-10) (package-native-inputs go-1.14)) (package-native-inputs go-1.14)))))) +(define-public go-1.17 + (package + (inherit go-1.16) + (name "go") + (version "1.17") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/golang/go") + (commit (string-append "go" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1psra6j95ws38mx3scc1whky8cwk32mazqs0wzzdwbs8ppl8iwl5")))) + (outputs '("out" "tests")) ; 'tests' contains distribution tests. + (arguments + `(#:modules ((ice-9 match) + (guix build gnu-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((output (assoc-ref outputs "out")) + (loader (string-append (assoc-ref inputs "libc") + ,(glibc-dynamic-linker)))) + (setenv "GOOS" "linux") + (setenv "GO_LDSO" loader) + (setenv "GOROOT" (getcwd)) + (setenv "GOROOT_FINAL" (string-append output "/lib/go")) + (setenv "GOGC" "400") + (setenv "GOCACHE" "/tmp/go-cache")))) + (add-after 'unpack 'patch-source + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((net-base (assoc-ref inputs "net-base")) + (tzdata-path (string-append (assoc-ref inputs "tzdata") + "/share/zoneinfo"))) + ;; XXX: Remove when #49729 is merged? + (for-each make-file-writable (find-files "src")) + + ;; Having the patch in the 'patches' field of breaks + ;; the 'TestServeContent' test due to the fact that + ;; timestamps are reset. Thus, apply it from here. + (invoke "patch" "-p1" "--force" "-i" + (assoc-ref inputs "go-skip-gc-test.patch")) + (invoke "patch" "-p1" "--force" "-i" + (assoc-ref inputs "go-fix-script-tests.patch")) + + (substitute* "src/os/os_test.go" + (("/usr/bin") (getcwd)) + (("/bin/sh") (which "sh"))) + + (substitute* "src/cmd/go/testdata/script/cgo_path_space.txt" + (("/bin/sh") (which "sh"))) + + ;; fix shebang for testar script + ;; note the target script is generated at build time. + (substitute* "misc/cgo/testcarchive/carchive_test.go" + (("/usr/bin/env bash") (which "bash"))) + + (substitute* "src/net/lookup_unix.go" + (("/etc/protocols") + (string-append net-base "/etc/protocols"))) + (substitute* "src/net/port_unix.go" + (("/etc/services") + (string-append net-base "/etc/services"))) + (substitute* "src/time/zoneinfo_unix.go" + (("/usr/share/zoneinfo/") tzdata-path))))) + (add-after 'patch-source 'disable-failing-tests + (lambda _ + ;; Disable failing tests: these tests attempt to access + ;; commands or network resources which are neither available + ;; nor necessary for the build to succeed. + (for-each + (match-lambda + ((file test) + (let ((regex (string-append "^(func\\s+)(" test "\\()"))) + (substitute* file + ((regex all before test_name) + (string-append before "Disabled" test_name)))))) + '(("src/net/cgo_unix_test.go" "TestCgoLookupPort") + ("src/net/cgo_unix_test.go" "TestCgoLookupPortWithCancel") + ;; 127.0.0.1 doesn't exist + ("src/net/cgo_unix_test.go" "TestCgoLookupPTR") + ("src/net/cgo_unix_test.go" "TestCgoLookupPTRWithCancel") + ;; /etc/services doesn't exist + ("src/net/parse_test.go" "TestReadLine") + ;; The user's directory doesn't exist + ("src/os/os_test.go" "TestUserHomeDir"))) + + ;; These tests fail on aarch64-linux + (substitute* "src/cmd/dist/test.go" + (("t.registerHostTest\\(\"testsanitizers/msan.*") "")))) + (add-after 'patch-source 'enable-external-linking + (lambda _ + ;; Invoke GCC to link any archives created with GCC (that is, any + ;; packages built using 'cgo'), because Go doesn't know how to + ;; handle the runpaths but GCC does. Use substitute* rather than + ;; a patch since these files are liable to change often. + ;; + ;; XXX: Replace with GO_EXTLINK_ENABLED=1 or similar when + ;; and/or + ;; are resolved. + (substitute* "src/cmd/link/internal/ld/config.go" + (("iscgo && externalobj") "iscgo")) + (substitute* '("src/cmd/nm/nm_cgo_test.go" + "src/cmd/dist/test.go") + (("^func.*?nternalLink\\(\\).*" all) + (string-append all "\n\treturn false\n"))))) + (replace 'build + (lambda* (#:key (parallel-build? #t) #:allow-other-keys) + (let* ((njobs (if parallel-build? (parallel-job-count) 1))) + (with-directory-excursion "src" + (setenv "GOMAXPROCS" (number->string njobs)) + (invoke "sh" "make.bash" "--no-banner"))))) + (replace 'check + (lambda* (#:key target (tests? (not target)) (parallel-tests? #t) + #:allow-other-keys) + (let* ((njobs (if parallel-tests? (parallel-job-count) 1))) + (when tests? + (with-directory-excursion "src" + (setenv "GOMAXPROCS" (number->string njobs)) + (invoke "sh" "run.bash" "--no-rebuild")))))) + (add-before 'install 'unpatch-perl-shebangs + (lambda _ + ;; Avoid inclusion of perl in closure by rewriting references + ;; to perl input in sourcecode generators and test scripts + (substitute* (cons "src/net/http/cgi/testdata/test.cgi" + (find-files "src" "\\.pl$")) + (("^#!.*") "#!/usr/bin/env perl\n")))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + ;; Notably, we do not install archives (180M), which Go will + ;; happily recompile quickly (and cache) if needed, almost + ;; surely faster than they could be substituted. + ;; + ;; The main motivation for pre-compiled archives is to use + ;; libc-linked `net' or `os' packages without a C compiler, + ;; but on Guix a C compiler is necessary to properly link the + ;; final binaries anyway. Many build flags also invalidate + ;; these pre-compiled archives, so in practice Go often + ;; recompiles them anyway. + ;; + ;; Upstream is also planning to no longer install these + ;; archives: + ;; + ;; When necessary, a custom pre-compiled library package can + ;; be created with `#:import-path "std"' and used with + ;; `-pkgdir'. + (let* ((out (assoc-ref outputs "out")) + (tests (assoc-ref outputs "tests"))) + (for-each + (lambda (file) + (copy-recursively file (string-append out "/lib/go/" file))) + '("lib" "VERSION" "pkg/include" "pkg/tool")) + + (for-each + (match-lambda + ((file dest output) + ;; Copy to output/dest and symlink from output/lib/go/file. + (let ((file* (string-append output "/lib/go/" file)) + (dest* (string-append output "/" dest))) + (copy-recursively file dest*) + (mkdir-p (dirname file*)) + (symlink (string-append "../../" dest) file*)))) + `(("bin" "bin" ,out) + ("src" "share/go/src" ,out) + ("misc" "share/go/misc" ,out) + ("doc" "share/doc/go/doc" ,out) + ("api" "share/go/api" ,tests) + ("test" "share/go/test" ,tests)))))) + (add-after 'install 'install-doc-files + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each + (lambda (file) + (install-file file (string-append out "/share/doc/go"))) + '("AUTHORS" "CONTRIBUTORS" "CONTRIBUTING.md" "PATENTS" + "README.md" "SECURITY.md")))))))) + (inputs (alist-delete "gcc:lib" (package-inputs go-1.16))))) + (define-public go go-1.14) (define-public go-0xacab-org-leap-shapeshifter -- cgit v1.2.3 From cf4ccde47d9df93569851e848c73a5c3d489a440 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Thu, 9 Sep 2021 16:51:27 -0400 Subject: gnu: go-1.17: Update to 1.17.1. * gnu/packages/golang.scm (go-1.17): Update to 1.17.1. --- gnu/packages/golang.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b051ed2990..2dfd47d396 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -612,7 +612,7 @@ (define-public go-1.17 (package (inherit go-1.16) (name "go") - (version "1.17") + (version "1.17.1") (source (origin (method git-fetch) @@ -622,7 +622,7 @@ (define-public go-1.17 (file-name (git-file-name name version)) (sha256 (base32 - "1psra6j95ws38mx3scc1whky8cwk32mazqs0wzzdwbs8ppl8iwl5")))) + "0wk99lwpzp4qwrksl932lm9vb70nyf4vgb5lxwh7gzjcbhlqj992")))) (outputs '("out" "tests")) ; 'tests' contains distribution tests. (arguments `(#:modules ((ice-9 match) -- cgit v1.2.3 From 49c6145b97066bff959cfc882cf2a658fbd0cb53 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 9 Sep 2021 17:50:07 -0700 Subject: gnu: go-github-com-keybase-go-ps: Fix tests when building with Go 1.17. * gnu/packages/golang.scm (go-github-com-keybase-go-ps)[arguments] <#:phases>{fix-tests}: Remove extraneous build line to appease go@1.17. Signed-off-by: Leo Famulari --- gnu/packages/golang.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2dfd47d396..4577c49cba 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1597,7 +1597,9 @@ (define-public go-github-com-keybase-go-ps (("/bin/sleep" command) (string-append (assoc-ref (or native-inputs inputs) "coreutils") - command)))))))) + command))) + (substitute* "src/github.com/keybase/go-ps/process_openbsd.go" + (("^// \\+build ignore") ""))))))) (native-inputs `(("coreutils" ,coreutils) ("go-github-com-stretchr-testify" -- cgit v1.2.3 From 4e1adbc3b0b6694785476f4f01fbd8004fdfb5a3 Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 9 Sep 2021 17:50:08 -0700 Subject: gnu: go-github-com-sevlyar-go-daemon: Fix tests when building with Go 1.17. * gnu/packages/golang.scm (go-github-com-sevlyar-go-daemon)[source]: Add snippet to fix tests for go@1.17. Signed-off-by: Leo Famulari --- gnu/packages/golang.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4577c49cba..b08796e22a 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1558,6 +1558,12 @@ (define-public go-github-com-sevlyar-go-daemon (url "https://github.com/sevlyar/go-daemon") (commit (string-append "v" version)))) (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet + ;; XXX: Remove when updating + '(begin + (substitute* "compilation_test.go" + ((".*\"darwin/386\".*") "")))) (sha256 (base32 "1y3gnxaifykcjcbzx91lz9bc93b95w3xj4rjxjbii26pm3j7gqyk")))) (build-system go-build-system) -- cgit v1.2.3 From f161f111e0692da4103196a351081a6396f3834a Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 9 Sep 2021 17:50:09 -0700 Subject: gnu: go-github-com-urfave-cli: Fix tests when building with Go 1.17. * gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/golang.scm (go-github-com-urfave-cli)[origin]: Apply it. Signed-off-by: Leo Famulari --- gnu/local.mk | 1 + gnu/packages/golang.scm | 3 ++- .../go-github-com-urfave-cli-fix-tests.patch | 28 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch (limited to 'gnu/packages/golang.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 7141fcd31e..3148c9e82f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1184,6 +1184,7 @@ dist_patch_DATA = \ %D%/packages/patches/gobject-introspection-cc.patch \ %D%/packages/patches/gobject-introspection-girepository.patch \ %D%/packages/patches/go-fix-script-tests.patch \ + %D%/packages/patches/go-github-com-urfave-cli-fix-tests.patch \ %D%/packages/patches/go-skip-gc-test.patch \ %D%/packages/patches/gpm-glibc-2.26.patch \ %D%/packages/patches/gpodder-disable-updater.patch \ diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index b08796e22a..2d0bbdb30d 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -4976,7 +4976,8 @@ (define-public go-github-com-urfave-cli (file-name (git-file-name name version)) (sha256 (base32 - "10mcnvi5qmn00vpyk6si8gjka7p654wr9hac4zc9w5h3ickhvbdc")))) + "10mcnvi5qmn00vpyk6si8gjka7p654wr9hac4zc9w5h3ickhvbdc")) + (patches (search-patches "go-github-com-urfave-cli-fix-tests.patch")))) (build-system go-build-system) (arguments '(#:import-path "github.com/urfave/cli")) diff --git a/gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch b/gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch new file mode 100644 index 0000000000..7408d4ec16 --- /dev/null +++ b/gnu/packages/patches/go-github-com-urfave-cli-fix-tests.patch @@ -0,0 +1,28 @@ +Backported from upstream PR: https://github.com/urfave/cli/pull/1299 +--- +diff --git a/app_test.go b/app_test.go +index 33024ff..6b3aaa3 100644 +--- a/app_test.go ++++ b/app_test.go +@@ -513,18 +513,18 @@ func TestApp_RunAsSubcommandParseFlags(t *testing.T) { + func TestApp_RunAsSubCommandIncorrectUsage(t *testing.T) { + a := App{ + Flags: []Flag{ +- StringFlag{Name: "--foo"}, ++ StringFlag{Name: "foo"}, + }, + Writer: bytes.NewBufferString(""), + } + + set := flag.NewFlagSet("", flag.ContinueOnError) +- _ = set.Parse([]string{"", "---foo"}) ++ _ = set.Parse([]string{"", "-bar"}) + c := &Context{flagSet: set} + + err := a.RunAsSubcommand(c) + +- expect(t, err, errors.New("bad flag syntax: ---foo")) ++ expect(t, err.Error(), "flag provided but not defined: -bar") + } + + func TestApp_CommandWithFlagBeforeTerminator(t *testing.T) { -- cgit v1.2.3 From 63cc4dd5793b62802354a31d8e6913f065d3bcec Mon Sep 17 00:00:00 2001 From: Sarah Morgensen Date: Thu, 9 Sep 2021 17:50:10 -0700 Subject: gnu: go-github-com-urfave-cli-v2: Fix tests when building with Go 1.17. * gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/golang.scm (go-github-com-urfave-cli-v2)[origin]: Apply it. Signed-off-by: Leo Famulari --- gnu/local.mk | 1 + gnu/packages/golang.scm | 5 ++- .../go-github-com-urfave-cli-v2-fix-tests.patch | 37 ++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch (limited to 'gnu/packages/golang.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 3148c9e82f..175e691a63 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1185,6 +1185,7 @@ dist_patch_DATA = \ %D%/packages/patches/gobject-introspection-girepository.patch \ %D%/packages/patches/go-fix-script-tests.patch \ %D%/packages/patches/go-github-com-urfave-cli-fix-tests.patch \ + %D%/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch \ %D%/packages/patches/go-skip-gc-test.patch \ %D%/packages/patches/gpm-glibc-2.26.patch \ %D%/packages/patches/gpodder-disable-updater.patch \ diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 2d0bbdb30d..4c6b41e406 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -5003,7 +5003,10 @@ (define-public go-github-com-urfave-cli-v2 (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "08pvn7gyfznni72xrxfh2x6xxa8ykr7l1ka278js8g8qkh71bj8l")))) + (base32 "08pvn7gyfznni72xrxfh2x6xxa8ykr7l1ka278js8g8qkh71bj8l")) + ;; XXX: Remove patch when updating. + (patches + (search-patches "go-github-com-urfave-cli-v2-fix-tests.patch")))) (arguments '(#:import-path "github.com/urfave/cli/v2")))) diff --git a/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch b/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch new file mode 100644 index 0000000000..87ccc2b655 --- /dev/null +++ b/gnu/packages/patches/go-github-com-urfave-cli-v2-fix-tests.patch @@ -0,0 +1,37 @@ +From upstream PR: https://github.com/urfave/cli/pull/1299 + +From: William Wilson +Date: Tue, 31 Aug 2021 14:19:17 -0500 +Subject: Make test case compatible with Go 1.17 + +As of Go 1.17, the go flag package will panic if given a syntactically invalid +flag. This causes TestApp_RunAsSubCommandIncorrectUsage to panic and therefore +fail. See https://golang.org/doc/go1.17#flag for more information. + +--- +diff --git a/app_test.go b/app_test.go +index 7c38f6048..76e211d68 100644 +--- a/app_test.go ++++ b/app_test.go +@@ -476,18 +476,18 @@ func TestApp_RunAsSubCommandIncorrectUsage(t *testing.T) { + a := App{ + Name: "cmd", + Flags: []Flag{ +- &StringFlag{Name: "--foo"}, ++ &StringFlag{Name: "foo"}, + }, + Writer: bytes.NewBufferString(""), + } + + set := flag.NewFlagSet("", flag.ContinueOnError) +- _ = set.Parse([]string{"", "---foo"}) ++ _ = set.Parse([]string{"", "-bar"}) + c := &Context{flagSet: set} + + err := a.RunAsSubcommand(c) + +- expect(t, err, errors.New("bad flag syntax: ---foo")) ++ expect(t, err.Error(), "flag provided but not defined: -bar") + } + + func TestApp_CommandWithFlagBeforeTerminator(t *testing.T) { -- cgit v1.2.3 From 0b7a79ff7e5922fecf8e16c4254038bf7ce64f06 Mon Sep 17 00:00:00 2001 From: Philip McGrath Date: Mon, 6 Sep 2021 01:37:51 -0400 Subject: gnu: Add go-cloud-google-com-go-compute-metadata. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/golang.scm (go-cloud-google-com-go-compute-metadata): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/golang.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 4c6b41e406..04603435a0 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2944,6 +2944,33 @@ (define-public go-github-com-emicklei-go-restful with the HTTP protocol definition.") (license license:expat))) +(define-public go-cloud-google-com-go-compute-metadata + (package + (name "go-cloud-google-com-go-compute-metadata") + (version "0.81.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/googleapis/google-cloud-go") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "15jgynqb5pbxqbj3a7ii970yn4srsw1dbxzxnhpkfkmplalpgyh3")))) + (build-system go-build-system) + (arguments + '(#:unpack-path "cloud.google.com/go" + #:import-path "cloud.google.com/go/compute/metadata")) + (home-page + "https://pkg.go.dev/cloud.google.com/go/compute/metadata") + (synopsis + "Go wrapper for Google Compute Engine metadata service") + (description + "This package provides access to Google Compute Engine (GCE) metadata and +API service accounts for Go.") + (license license:asl2.0))) + (define-public go-github-com-google-cadvisor (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") (revision "0")) -- cgit v1.2.3 From 912880c15ec7226d82773991ac833cec4e1985b2 Mon Sep 17 00:00:00 2001 From: Philip McGrath Date: Mon, 6 Sep 2021 01:37:52 -0400 Subject: gnu: Add go-github-com-google-gmail-oauth2-tools-go-sendgmail. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/golang.scm (go-github-com-google-gmail-oauth2-tools-go-sendgmail): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 04603435a0..f02d0aa9df 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -2971,6 +2971,41 @@ (define-public go-cloud-google-com-go-compute-metadata API service accounts for Go.") (license license:asl2.0))) +(define-public go-github-com-google-gmail-oauth2-tools-go-sendgmail + (let ((commit "e3229155a4037267ce40f1a3a681f53221aa4d8d") + (revision "0")) + (package + (name "go-github-com-google-gmail-oauth2-tools-go-sendgmail") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/gmail-oauth2-tools") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1cxpkiaajhq1gjsg47r2b5xgck0r63pvkyrkm7af8c8dw7fyn64f")))) + (propagated-inputs + `(("go-golang-org-x-oauth2" ,go-golang-org-x-oauth2) + ("go-cloud-google-com-go-compute-metadata" + ,go-cloud-google-com-go-compute-metadata))) + (build-system go-build-system) + (arguments + '(#:unpack-path "github.com/google/gmail-oauth2-tools" + #:import-path "github.com/google/gmail-oauth2-tools/go/sendgmail")) + (home-page + "https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail") + (synopsis + "Sendmail-compatible tool for using Gmail with @code{git send-email}") + (description + "The @command{sendgmail} command provides a minimal sendmail-compatible +front-end that connects to Gmail using OAuth2. It is specifically designed +for use with @code{git send-email}. The command needs a Gmail API key to +function.") + (license license:asl2.0)))) + (define-public go-github-com-google-cadvisor (let ((commit "2ed7198f77395ee9a172878a0a7ab92ab59a2cfd") (revision "0")) -- cgit v1.2.3 From 73e44626371446a98f7d3e962f074db702e30fed Mon Sep 17 00:00:00 2001 From: Adam Kandur Date: Sun, 29 Aug 2021 19:52:55 +0300 Subject: gnu: Add go-github-com-DHowett-go-plist. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/golang.scm (go-github-com-DHowett-go-plist): New variable. Co-authored-by: Ludovic Courtès --- gnu/packages/golang.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/golang.scm') diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f02d0aa9df..a96f743f68 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1191,6 +1191,35 @@ (define-public go-github-com-deckarep-golang-set (description "Set is the set collection for the Go language.") (license license:expat))) +(define-public go-github-com-dhowett-go-plist + (let ((commit "1454fab16a0642638feb0ae98c41f79eccb2a20a") + (revision "1")) + (package + (name "go-github-com-dhowett-go-plist") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/DHowett/go-plist") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "01c9wmhny2rxywcjipq1xa0xw4qm7yd001239grwxcja3b4n45v8")))) + (build-system go-build-system) + (arguments `(#:import-path "howett.net/plist")) + (inputs + `(("go-github.com-jessevdk-go-flags" ,go-github.com-jessevdk-go-flags) + ("go-github-com-kr-pretty" ,go-github-com-kr-pretty) + ("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1) + ("go-gopkg-in-yaml-v2" ,go-gopkg-in-yaml-v2))) + (home-page "https://github.com/DHowett/go-plist") + (synopsis "Apple property list transcoder") + (description "This list transcoder supports encoding/decoding property +lists (Apple XML, Apple Binary, OpenStep, and GNUStep) from/to arbitrary Go +types.") + (license license:giftware)))) + (define-public go-github-com-blanu-dust (package (name "go-github-com-blanu-dust") -- cgit v1.2.3