Subject: [PATCH 03/33] gnu: Add go-src-elv-sh.

From: Edouard Klein <[email-masked]>
Date: Thu, 14 Sep 2023 09:29:16 +0200

* gnu/packages/golang.scm (go-src-elv-sh): New variable.
---
 gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f6b7eedab7..57dee78330 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -75,6 +75,7 @@ (define-module (gnu packages golang)
   #:use-module (gnu packages base)
   #:use-module ((gnu packages bootstrap) #:select (glibc-dynamic-linker))
   #:use-module (gnu packages check)
+  #:use-module (gnu packages databases)
   #:use-module (gnu packages fonts)
   #:use-module (gnu packages gcc)
   #:use-module (gnu packages glib)
@@ -13224,6 +13225,40 @@ (define-public go-github-com-sourcegraph-go-lsp
 Protocol.")
     (license license:expat)))
 
+(define-public go-src-elv-sh
+  (package
+    (name "go-src-elv-sh")
+    (version "0.19.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/elves/elvish")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1285j66b7kajyxffpcil8zl9p5awqw2n4si5vg4zlci651fcj8vq"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "src.elv.sh/cmd/elvish"
+       #:unpack-path "src.elv.sh"
+       #:go ,go-1.20))
+    (propagated-inputs `(("go-golang-org-x-sys" ,go-golang-org-x-sys)
+                         ("go-go-etcd-io-bbolt" ,go-go-etcd-io-bbolt)
+                         ("go-github-com-sourcegraph-jsonrpc2" ,go-github-com-sourcegraph-jsonrpc2)
+                         ("go-github-com-sourcegraph-go-lsp" ,go-github-com-sourcegraph-go-lsp)
+                         ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty)
+                         ("go-github-com-google-go-cmp" ,go-github-com-google-go-cmp-cmp)
+                         ("go-github-com-creack-pty" ,go-github-com-creack-pty)))
+    (home-page "https://src.elv.sh")
+    (synopsis
+     "Elvish: Expressive Programming Language + Versatile Interactive Shell")
+    (description
+     "Elvish is an expressive programming language and a versatile interactive shell,
+combined into one seamless package.  It runs on Linux, BSDs, @code{macOS} and
+Windows.")
+    (license license:bsd-2)))
+
 (define-public go-github-com-gorilla-websocket
   (package
     (name "go-github-com-gorilla-websocket")
-- 
2.40.1