summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorAshvith Shetty <ashvithshetty0010@zohomail.in>2025-02-15 00:35:34 +0530
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-02-15 16:18:09 +0000
commit50e6b4bc42b5b70cadb5e207a0520d03e356277e (patch)
tree928eec614f0f4790ccaeb5d3087f5a810d47403a /gnu
parent46382b03286da6ee989afb9c10e7712a45c8ccbf (diff)
gnu: Add micro.
* gnu/packages/text-editors.scm (micro): New variable. Change-Id: Ib6009701b96b2d534a2fae365fcf9ce8a04f9340 Co-authored-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/text-editors.scm55
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index f52bc092f10..e96fceb5103 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -35,6 +35,8 @@
35;;; Copyright © 2024 Herman Rimm <herman@rimm.ee> 35;;; Copyright © 2024 Herman Rimm <herman@rimm.ee>
36;;; Copyright © 2024 Spencer King <spencer.king@wustl.edu> 36;;; Copyright © 2024 Spencer King <spencer.king@wustl.edu>
37;;; Copyright © 2024 Murilo <murilo@disroot.org> 37;;; Copyright © 2024 Murilo <murilo@disroot.org>
38;;; Copyright © 2025 Ashvith Shetty <ashvithshetty0010@zohomail.in>
39;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
38;;; 40;;;
39;;; This file is part of GNU Guix. 41;;; This file is part of GNU Guix.
40;;; 42;;;
@@ -61,6 +63,7 @@
61 #:use-module (guix build-system cargo) 63 #:use-module (guix build-system cargo)
62 #:use-module (guix build-system cmake) 64 #:use-module (guix build-system cmake)
63 #:use-module (guix build-system gnu) 65 #:use-module (guix build-system gnu)
66 #:use-module (guix build-system go)
64 #:use-module (guix build-system glib-or-gtk) 67 #:use-module (guix build-system glib-or-gtk)
65 #:use-module (guix build-system meson) 68 #:use-module (guix build-system meson)
66 #:use-module (guix build-system python) 69 #:use-module (guix build-system python)
@@ -90,6 +93,9 @@
90 #:use-module (gnu packages freedesktop) 93 #:use-module (gnu packages freedesktop)
91 #:use-module (gnu packages gettext) 94 #:use-module (gnu packages gettext)
92 #:use-module (gnu packages glib) 95 #:use-module (gnu packages glib)
96 #:use-module (gnu packages golang-build)
97 #:use-module (gnu packages golang-check)
98 #:use-module (gnu packages golang-xyz)
93 #:use-module (gnu packages graphics) 99 #:use-module (gnu packages graphics)
94 #:use-module (gnu packages gnome) 100 #:use-module (gnu packages gnome)
95 #:use-module (gnu packages gtk) 101 #:use-module (gnu packages gtk)
@@ -153,6 +159,55 @@ complex tasks to be performed in an automated way. GNU ed offers several
153extensions over the standard utility.") 159extensions over the standard utility.")
154 (license license:gpl3+))) 160 (license license:gpl3+)))
155 161
162(define-public micro
163 (package
164 (name "micro")
165 (version "2.0.14")
166 (source
167 (origin
168 (method git-fetch)
169 (uri (git-reference
170 (url "https://github.com/zyedidia/micro")
171 (commit (string-append "v" version))))
172 (file-name (git-file-name name version))
173 (sha256
174 (base32 "1pcfsaq7k6q59vh3xgh8gy350apkv5rkc09d4fh15lx7m6bxbwka"))))
175 (build-system go-build-system)
176 (arguments
177 (list
178 #:install-source? #f
179 #:import-path "github.com/zyedidia/micro/cmd/micro"
180 #:unpack-path "github.com/zyedidia/micro"
181 ;; Step away from cmd/micro to test the whole project.
182 #:test-subdirs #~(list "../../...")))
183 (inputs
184 (list go-github-com-blang-semver
185 go-github-com-dustin-go-humanize
186 go-github-com-go-errors-errors
187 go-github-com-layeh-gopher-luar
188 go-github-com-mattn-go-isatty
189 go-github-com-mitchellh-go-homedir
190 go-github-com-sergi-go-diff
191 go-github-com-stretchr-testify
192 go-github-com-yuin-gopher-lua
193 go-github-com-zyedidia-clipper
194 go-github-com-zyedidia-glob
195 go-github-com-zyedidia-go-runewidth
196 go-github-com-zyedidia-go-shellquote
197 go-github-com-zyedidia-json5
198 go-github-com-zyedidia-tcell-v2
199 go-github-com-zyedidia-terminal
200 go-golang-org-x-text
201 go-gopkg-in-yaml-v2))
202 (home-page "https://github.com/zyedidia/micro")
203 (synopsis "Modern and intuitive terminal-based text editor")
204 (description
205 "@code{micro} is a terminal-based text editor that aims to be easy to use and
206intuitive, while also taking advantage of the capabilities of modern terminals.")
207 ;; The project lists licenses of all used sources in LICENSE-THIRD-PARTY
208 ;; file which are already included in Guix's package definition.
209 (license license:expat)))
210
156(define-public lem 211(define-public lem
157 (let ((commit "534cb9f2e1e1b0ffbdf4552a39801deec21a76f8") 212 (let ((commit "534cb9f2e1e1b0ffbdf4552a39801deec21a76f8")
158 (revision "3")) 213 (revision "3"))