From: Tissevert <tissevert+guix@marvid.fr>
To: 48126@debbugs.gnu.org
Subject: [bug#48126] [PATCH] Add package for vim-solarized
Date: Fri, 30 Apr 2021 19:42:35 +0200 [thread overview]
Message-ID: <20210430194235.1461cada@pine.local> (raw)
[-- Attachment #1: Type: text/plain, Size: 1213 bytes --]
Hi Guix !
I here's my first attempt at packaging something, I noticed that vim-solarized
was missing so I tried to write a package for it.
The only warning I got was from the guix lint which told me it couldn't find
upstream releases. I believe this is due to vim-solarized particular structure:
it's a light «clone» of the main repository
https://github.com/altercation/solarized containing only the vim-files. It
doesn't have any tags/releases but the full repository does. I used the latest
commit on the master branch in git-reference for guix to retrieve it and the
corresponding version on the full repository as package version. Does that seem
right ? I found another copy in project vim-scripts
(https://github.com/vim-scripts/Solarized) which has made a tag (the same
version name that I chose) so we could be using either the full repository
(more unneeded data retrieved during the build) or this second copy (they do
provide a tag but isn't it better to remain as close as possible to the
original source ?).
I hope my patch is correct and thank you everyone for being such a welcoming
community and having made my experience with Guix so far absolutely great !
Tissevert
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-package-for-vim-solarized.patch --]
[-- Type: text/x-patch, Size: 1912 bytes --]
From 8c6f15a97910d2786968818fc8ecf82a73df24c3 Mon Sep 17 00:00:00 2001
From: Tissevert <tissevert+guix@marvid.fr>
Date: Fri, 30 Apr 2021 19:04:35 +0200
Subject: [PATCH] Add package for vim-solarized
---
gnu/packages/vim.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 47ac984fc7..477c15b9aa 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -10,6 +10,7 @@
;;; Copyright © 2019, 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
+;;; Copyright © 2021 Tissevert <tissevert+guix@marvid.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -579,6 +580,30 @@ are detected, the user is notified.")
(home-page "https://github.com/vim-syntastic/syntastic")
(license license:wtfpl2)))
+(define-public vim-solarized
+ (package
+ (name "vim-solarized")
+ (version "v1.0.0beta1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/altercation/vim-colors-solarized")
+ (commit "528a59f26d12278698bb946f8fb82a63711eec21")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "05d3lmd1shyagvr3jygqghxd3k8a4vp32723fvxdm57fdrlyzcm1"))))
+ (build-system copy-build-system)
+ (arguments
+ '(#:install-plan
+ '(("colors" "share/vim/vimfiles/")
+ ("doc" "share/vim/vimfiles/"))))
+ (home-page "https://github.com/altercation/vim-colors-solarized")
+ (synopsis "Solarized Colorscheme for Vim")
+ (description "Precision colors for machines and people")
+ (license license:bsd-3)))
+
(define-public editorconfig-vim
(package
(name "editorconfig-vim")
--
2.31.1
next reply other threads:[~2021-04-30 21:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-30 17:42 Tissevert [this message]
2021-04-30 20:44 ` [bug#48126] [PATCH] Add package for vim-solarized Tissevert
2021-04-30 22:06 ` Tobias Geerinckx-Rice via Guix-patches via
2021-04-30 23:20 ` Tobias Geerinckx-Rice via Guix-patches via
2021-04-30 23:27 ` Tobias Geerinckx-Rice via Guix-patches via
2021-05-04 20:56 ` Tissevert
2021-05-14 17:10 ` Tissevert
2021-05-14 18:25 ` Thiago Jung Bauermann via Guix-patches via
2021-05-14 20:33 ` Tissevert
2021-05-15 13:04 ` bug#48126: " Tobias Geerinckx-Rice via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210430194235.1461cada@pine.local \
--to=tissevert+guix@marvid.fr \
--cc=48126@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).