summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-06-10 10:35:44 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-06-10 12:31:43 +0100
commita6d0073aca07e6a91f24e87a744c15b9f45ccc3b (patch)
tree77162a9a16d3f60b05726d38b187d0c6832de069
parentc9fd6b8d4198f823daf9cdcf64885602b40e0eaa (diff)
gnu: Add go-9fans-net-go variant.
This variant is to keep go importer healthy when it use with "--insert" option and name package according to go.mod import path. * gnu/packages/golang-xyz.scm (go-9fans-net-go): New variable. (go-ninefans-net-go): Inherit from go-9fans-net-go. Change-Id: Icda3d830ae4c00f5bc6ae70b6e37c160835b4570
-rw-r--r--gnu/packages/golang-xyz.scm25
1 files changed, 18 insertions, 7 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index c50c288dac..1a04ed7627 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -118,14 +118,14 @@
;;; Libraries:
;;;
-;; XXX: The package name in Guix uses 'ninefans' instead of '9fans' to
-;; accomodate from a shortcoming of the go-build-system where the `go-inputs'
-;; procedure in the `setup-go-environment' phase uses
-;; `package-name->name+version', which returns 'go' as name for
-;; go-9fans-net-go-acme, which gets removed from the results and thus GOPATH.
-(define-public go-ninefans-net-go
+(define-public go-9fans-net-go
+ ;; XXX: This variant is to keep go importer healthy with "--insert" option,
+ ;; which places package in alphabetical order and names it accordingly to
+ ;; import path from go.mod file.
+ ;;
+ ;; Use go-ninefans-net-go to include in inputs.
(package
- (name "go-ninefans-net-go")
+ (name "go-9fans-net-go")
(version "0.0.7")
(source
(origin
@@ -19559,6 +19559,17 @@ that @code{gofmt} is happy with.")
formatter, and interpreter with bash support.")
(license license:bsd-3)))
+(define-public go-ninefans-net-go
+ ;; XXX: The package name in Guix uses 'ninefans' instead of '9fans' to
+ ;; accomodate from a shortcoming of the go-build-system where the
+ ;; `go-inputs' procedure in the `setup-go-environment' phase uses
+ ;; `package-name->name+version', which returns 'go' as name for
+ ;; go-9fans-net-go-acme, which gets removed from the results and thus
+ ;; GOPATH.
+ (package
+ (inherit go-9fans-net-go)
+ (name "go-ninefans-net-go")))
+
(define-public go-nullprogram-com-x-optparse
(package
(name "go-nullprogram-com-x-optparse")