diff mbox series

[bug#54560,25/47] gnu: Add go-github-com-shurcool-vfsgen.

Message ID 20220325133211.5128-25-hello@lnikki.la
State New
Headers show
Series [bug#54560,01/47] gnu: Add go-google-golang-org-protobuf. | expand

Commit Message

Leo Nikkilä March 25, 2022, 1:31 p.m. UTC
* gnu/packages/golang.scm (go-github-com-shurcool-vfsgen): New variable.
---
 gnu/packages/golang.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 416f1b1f86..da399aaafd 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5494,6 +5494,35 @@  (define-public go-github-com-shurcool-sanitized-anchor-name
 anchor names.")
     (license license:expat)))
 
+(define-public go-github-com-shurcool-vfsgen
+  (let ((commit "0d455de96546f756e8830efeec8dab0f489af135")
+        (revision "0"))
+    (package
+      (name "go-github-com-shurcool-vfsgen")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/shurcooL/vfsgen")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0md1vgaq95x1jmxpnsfv6s9xf3v8gqi7lcl7mkxpf6274rf1n2pk"))))
+      (build-system go-build-system)
+      (arguments
+       '(#:import-path "github.com/shurcooL/vfsgen"))
+      (propagated-inputs (list go-github-com-shurcool-httpfs))
+      (native-inputs (list go-github-com-shurcool-httpgzip
+                           go-golang-org-x-tools))
+      (synopsis "Generate Go code from an @code{http.FileSystem}")
+      (description
+       "Package @code{vfsgen} takes an @code{http.FileSystem} (likely at
+@code{go generate} time) and generates Go code that statically
+implements the provided @code{http.FileSystem}.")
+      (home-page "https://github.com/shurcooL/vfsgen")
+      (license license:expat))))
+
 (define-public go-github-com-pmezard-go-difflib
   (package
     (name "go-github-com-pmezard-go-difflib")