diff options
author | Ashvith Shetty <ashvithshetty0010@zohomail.in> | 2025-02-15 00:35:34 +0530 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-02-15 16:18:09 +0000 |
commit | 50e6b4bc42b5b70cadb5e207a0520d03e356277e (patch) | |
tree | 928eec614f0f4790ccaeb5d3087f5a810d47403a | |
parent | 46382b03286da6ee989afb9c10e7712a45c8ccbf (diff) | |
download | guix-50e6b4bc42b5b70cadb5e207a0520d03e356277e.tar.gz guix-50e6b4bc42b5b70cadb5e207a0520d03e356277e.zip |
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>
-rw-r--r-- | gnu/packages/text-editors.scm | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index f52bc092f1..e96fceb510 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -35,6 +35,8 @@ ;;; Copyright © 2024 Herman Rimm <herman@rimm.ee> ;;; Copyright © 2024 Spencer King <spencer.king@wustl.edu> ;;; Copyright © 2024 Murilo <murilo@disroot.org> +;;; Copyright © 2025 Ashvith Shetty <ashvithshetty0010@zohomail.in> +;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -61,6 +63,7 @@ #:use-module (guix build-system cargo) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system go) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system meson) #:use-module (guix build-system python) @@ -90,6 +93,9 @@ #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages golang-build) + #:use-module (gnu packages golang-check) + #:use-module (gnu packages golang-xyz) #:use-module (gnu packages graphics) #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) @@ -153,6 +159,55 @@ complex tasks to be performed in an automated way. GNU ed offers several extensions over the standard utility.") (license license:gpl3+))) +(define-public micro + (package + (name "micro") + (version "2.0.14") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zyedidia/micro") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pcfsaq7k6q59vh3xgh8gy350apkv5rkc09d4fh15lx7m6bxbwka")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:import-path "github.com/zyedidia/micro/cmd/micro" + #:unpack-path "github.com/zyedidia/micro" + ;; Step away from cmd/micro to test the whole project. + #:test-subdirs #~(list "../../..."))) + (inputs + (list go-github-com-blang-semver + go-github-com-dustin-go-humanize + go-github-com-go-errors-errors + go-github-com-layeh-gopher-luar + go-github-com-mattn-go-isatty + go-github-com-mitchellh-go-homedir + go-github-com-sergi-go-diff + go-github-com-stretchr-testify + go-github-com-yuin-gopher-lua + go-github-com-zyedidia-clipper + go-github-com-zyedidia-glob + go-github-com-zyedidia-go-runewidth + go-github-com-zyedidia-go-shellquote + go-github-com-zyedidia-json5 + go-github-com-zyedidia-tcell-v2 + go-github-com-zyedidia-terminal + go-golang-org-x-text + go-gopkg-in-yaml-v2)) + (home-page "https://github.com/zyedidia/micro") + (synopsis "Modern and intuitive terminal-based text editor") + (description + "@code{micro} is a terminal-based text editor that aims to be easy to use and +intuitive, while also taking advantage of the capabilities of modern terminals.") + ;; The project lists licenses of all used sources in LICENSE-THIRD-PARTY + ;; file which are already included in Guix's package definition. + (license license:expat))) + (define-public lem (let ((commit "534cb9f2e1e1b0ffbdf4552a39801deec21a76f8") (revision "3")) |