diff options
author | Katherine Cox-Buday <cox.katherine.e@gmail.com> | 2023-01-17 18:44:49 -0700 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2023-02-07 00:05:52 +0100 |
commit | 9fbbfea40badff3667fa14973bcb2ffcc87232f4 (patch) | |
tree | 1c6b0636d07c3a95b5420f7a5abeabc1ba4e1092 | |
parent | 0d1caba124fffb0598673f0e2ce57a46885064ff (diff) | |
download | guix-9fbbfea40badff3667fa14973bcb2ffcc87232f4.tar.gz |
gnu: Add go-github-com-jba-printsrc.
* gnu/packages/golang.scm (go-github-com-jba-printsrc): New variable. Signed-off-by: Christopher Baines <mail@cbaines.net>
-rw-r--r-- | gnu/packages/golang.scm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index a643efd283..6e398ccd2e 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -8560,6 +8560,31 @@ This makes it virtually free to implement mocks and testing over file system operations.") (license license:asl2.0))) +(define-public go-github-com-jba-printsrc + (package + (name "go-github-com-jba-printsrc") + (version "0.2.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jba/printsrc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gyy3kmb5a5i710wkv3b7ah7i7sz5sdc7v3sab5m4rxch1sd2fpj")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jba/printsrc" + ;; TODO: Open bug; expecting time.Local, but when local=UTC, we get time.UTC + #:tests? #f)) + (home-page "https://github.com/jba/printsrc") + (synopsis "Prints Go values as sourcecode") + (description + "Package printsrc prints Go values as Go source. It strives to render +legal Go source code, and returns an error when detects that it cannot.") + (license license:expat))) + (define-public go-github-com-jbenet-go-context (let ((commit "d14ea06fba99483203c19d92cfcd13ebe73135f4") (revision "1")) |