Subject: [bug#64778] [PATCH 2/5] gnu: Add go-github-com-cheggaaa-pb-v1

From: Karl Hallsby <[email-masked]>
Date: Fri, 21 Jul 2023 18:50:56 -0500

* gnu/packages/golang.scm (go-github-com-cheggaaa-pb-v1): New
variable. Inherit from pb-v3. Init at 1.0.28.
---
 gnu/packages/golang.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f1a8b098ba..e2ce6bc890 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -10549,6 +10549,26 @@ (define-public go-github-com-cheggaaa-pb-v3
 the terminal.")
     (license license:bsd-3)))
 
+(define-public go-github-com-cheggaaa-pb-v1
+  (package
+    (inherit go-github-com-cheggaaa-pb-v3)
+    (name "go-github-com-cheggaaa-pb-v1")
+    (version "1.0.28")
+    (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://github.com/cheggaaa/pb")
+                  (commit (string-append "v" version))))
+            (file-name (git-file-name name version))
+            (sha256
+             (base32
+              "13a66cqbpdif804qj12z9ad8r24va9q41gfk71qbc4zg1wsxs3rh"))))
+    (arguments
+     '(#:import-path "github.com/cheggaaa/pb/v1"
+       ;; XXX: it does have tests but I'm not sure how to run them.
+       ;; go-build-system is looking in the wrong directory.
+       #:tests? #f))))
+
 (define-public go-github-com-cheggaaa-pb
   (deprecated-package "go-github-com-cheggaaa-pb" go-github-com-cheggaaa-pb-v3))
 
-- 
2.40.1