From 63222170a5a997ffdc4b101156703f8909fc15e1 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 11 Sep 2025 11:22:17 +0100 Subject: [PATCH] gnu: Add go-github-com-hexops-valast. * gnu/packages/golang-check.scm (go-github-com-hexops-valast): New variable. Change-Id: I77a08047ce3076b491ab7c25f7252d995c8ce552 --- gnu/packages/golang-check.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/golang-check.scm b/gnu/packages/golang-check.scm index 00d442367076ae7b1bb198ee2a9d10674e43a729..b3f01132a0dffa7ddca3851515f50fe799c0dd59 100644 --- a/gnu/packages/golang-check.scm +++ b/gnu/packages/golang-check.scm @@ -1142,6 +1142,39 @@ Node @code{nock} library, it has features like: "This package provides a library to generate unified diffs.") (license license:bsd-3))) +(define-public go-github-com-hexops-valast + (package + (name "go-github-com-hexops-valast") + (version "1.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hexops/valast") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pn08if4zz7gm0g4l9wsg1psqkbqa9i0g5wnba7jr2c23253xplf")))) + (build-system go-build-system) + (arguments + (list + #:tests? #f ;cycles with go-github-com-hexops-autogold + #:import-path "github.com/hexops/valast")) + (propagated-inputs + (list go-golang-org-x-tools + go-mvdan-cc-gofumpt)) + (home-page "https://github.com/hexops/valast") + (synopsis "Convert Go values to their AST") + (description + "This package implements a functionality to converts Go values at runtime +into their @@code{go/ast} equivalent,which may be used in debugging and +testing, as a more comprehensive and configurable version of the @code{fmt} +package's @code{%+v} and @code{%#v} formatting directives. It is similar to +e.g. @code{repr} in Python.") + ;; Dual license. + (license (list license:asl2.0 + license:expat)))) + (define-public go-github-com-hydrogen18-memlistener (package (name "go-github-com-hydrogen18-memlistener")