summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-12-05 22:21:43 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-01-21 23:41:50 +0000
commitbab8435f76ca10b7039613c6e39df3d25bc96de5 (patch)
tree8a870dd6c0561ab9879d3726a446a40d6c8b7740
parentc87c0f8c0e837f742b835c8e9b550885e7886471 (diff)
gnu: go-github-com-charmbracelet-x-exp-golden: Sort.
* gnu/packages/golang-xyz.scm (go-github-com-charmbracelet-x-exp-golden): Sort variable alphabetically. Change-Id: I5ebe17342f458589f3a1d490203d3a0bf84ac9e4
-rw-r--r--gnu/packages/golang-xyz.scm84
1 files changed, 42 insertions, 42 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index 640a4e9235..a5147fb657 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -1794,6 +1794,48 @@ ECMA-48} specs.")
(sha256
(base32 "10ivngjp9ifm8b50pkxrwdzan6hn4s3l9fxi6wiqiwy6m2v41a0a"))))))
+(define-public go-github-com-charmbracelet-x-exp-golden
+ (package
+ (name "go-github-com-charmbracelet-x-exp-golden")
+ (version "0.0.0-20241121171228-5bc00623ea2f")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/charmbracelet/x")
+ (commit (go-version->git-ref version
+ #:subdir "exp/golden"))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/charmbracelet/x/exp/golden"
+ #:unpack-path "github.com/charmbracelet/x/"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ ;; Tests need to write to that files.
+ (with-directory-excursion (string-append "src/" import-path)
+ (make-file-writable "testdata/TestRequireEqualUpdate.golden")
+ (make-file-writable "testdata/TestRequireEqualNoUpdate.golden"))))
+ (add-after 'check 'post-check
+ (lambda* (#:key import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ ;; Remove modified testdata just in case.
+ (delete-file-recursively "testdata")))))))
+ (propagated-inputs
+ (list go-github-com-aymanbagabas-go-udiff))
+ (home-page "https://github.com/charmbracelet/x")
+ (synopsis "Verify @code{.golden} file equality")
+ (description
+ "Golden files (@code{.golden}) contain the raw expected output of
+tests,which can contain control codes and escape sequences. @code{golden}
+package provides an API for comparing Golden files.")
+ (license license:expat)))
+
(define-public go-github-com-charmbracelet-x-input
(package
(name "go-github-com-charmbracelet-x-input")
@@ -1887,48 +1929,6 @@ ECMA-48} specs.")
"This package provides the Windows API used at Charmbracelet.")
(license license:expat)))
-(define-public go-github-com-charmbracelet-x-exp-golden
- (package
- (name "go-github-com-charmbracelet-x-exp-golden")
- (version "0.0.0-20241121171228-5bc00623ea2f")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/charmbracelet/x")
- (commit (go-version->git-ref version
- #:subdir "exp/golden"))))
- (file-name (git-file-name name version))
- (sha256
- (base32 "016s67690dr3w3an6m24q6f4vrmwpk0qd4akvvh1dzpfyf4khxd4"))))
- (build-system go-build-system)
- (arguments
- (list
- #:import-path "github.com/charmbracelet/x/exp/golden"
- #:unpack-path "github.com/charmbracelet/x/"
- #:phases
- #~(modify-phases %standard-phases
- (add-before 'check 'pre-check
- (lambda* (#:key import-path #:allow-other-keys)
- ;; Tests need to write to that files.
- (with-directory-excursion (string-append "src/" import-path)
- (make-file-writable "testdata/TestRequireEqualUpdate.golden")
- (make-file-writable "testdata/TestRequireEqualNoUpdate.golden"))))
- (add-after 'check 'post-check
- (lambda* (#:key import-path #:allow-other-keys)
- (with-directory-excursion (string-append "src/" import-path)
- ;; Remove modified testdata just in case.
- (delete-file-recursively "testdata")))))))
- (propagated-inputs
- (list go-github-com-aymanbagabas-go-udiff))
- (home-page "https://github.com/charmbracelet/x")
- (synopsis "Verify @code{.golden} file equality")
- (description
- "Golden files (@code{.golden}) contain the raw expected output of
-tests,which can contain control codes and escape sequences. @code{golden}
-package provides an API for comparing Golden files.")
- (license license:expat)))
-
(define-public go-github-com-cheggaaa-pb
(package
(name "go-github-com-cheggaaa-pb")