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

From: Leo Nikkilä <[email-masked]>
Date: Fri, 25 Mar 2022 15:31:49 +0200

* gnu/packages/golang.scm (go-github-com-shurcool-vfsgen): New variable.
---
 gnu/packages/golang.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

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")
-- 
2.34.0