* [bug#39739] New: ac-geiser
@ 2020-02-22 13:29 Jeremy Korwin-Zmijowski
2020-03-18 23:22 ` [bug#39739] Here is the patch updated Jeremy Korwin-Zmijowski
0 siblings, 1 reply; 4+ messages in thread
From: Jeremy Korwin-Zmijowski @ 2020-02-22 13:29 UTC (permalink / raw)
To: 39739
[-- Attachment #1: Type: text/plain, Size: 3 bytes --]
[-- Attachment #2: 0001-gnu-Add-emacs-ac-geiser.patch --]
[-- Type: text/x-patch, Size: 1908 bytes --]
From 2d07915bd550bf694d972456c75a9c823e9263f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Korwin-Zmijowski?=
<jeremy@korwin-zmijowski.fr>
Date: Sat, 22 Feb 2020 10:44:49 +0100
Subject: [PATCH 1/1] gnu: Add emacs-ac-geiser.
* gnu/packages/emacs-xyz.scm (emacs-ac-geiser): New variable
---
gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index fca6b58b80..ef8b19d449 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -59,6 +59,7 @@
;;; Copyright © 2019 David Wilson <david@daviwil.com>
;;; Copyright © 2020 Paul Garlick <pgarlick@tourbillion-technology.com>
;;; Copyright © 2020 Robert Smith <robertsmith@posteo.net>
+;;; Copyright © 2020 Jeremy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -21477,3 +21478,28 @@ Values are stored in a directory in @code{user-emacs-directory}, using
one file per value. This makes it easy to delete or remove unused
variables.")
(license license:gpl3+)))
+
+(define-public emacs-ac-geiser
+ (package
+ (name "emacs-ac-geiser")
+ (version "0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://stable.melpa.org/packages/ac-geiser-"
+ version
+ ".tar"))
+ (sha256
+ (base32
+ "17l5bpzpldzyazbpjg67f17x3n5q081xffx4jz7jblbk7bcybzrj"))))
+ (build-system emacs-build-system)
+ (propagated-inputs
+ `(("emacs-geiser" ,emacs-geiser)
+ ("emacs-auto-complete" ,emacs-auto-complete)))
+ (home-page "https://github.com/xiaohanyu/ac-geiser/")
+ (synopsis "Auto-complete backend for geiser")
+ (description
+ "Provides one auto-complete source for Scheme projects using geiser.
+")
+ (license license:bsd-3)))
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#39739] Here is the patch updated
2020-02-22 13:29 [bug#39739] New: ac-geiser Jeremy Korwin-Zmijowski
@ 2020-03-18 23:22 ` Jeremy Korwin-Zmijowski
2020-03-19 2:39 ` Kyle Meyer
0 siblings, 1 reply; 4+ messages in thread
From: Jeremy Korwin-Zmijowski @ 2020-03-18 23:22 UTC (permalink / raw)
To: 39739
[-- Attachment #1: Type: text/plain, Size: 24 bytes --]
Freely yours,
Jérémy
[-- Attachment #2: 0001-gnu-Add-emacs-ac-geiser.patch --]
[-- Type: text/x-patch, Size: 1942 bytes --]
From 38eb230416cc43506fd3cdbf8cc3d1d7f08803c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Korwin-Zmijowski?=
<jeremy@korwin-zmijowski.fr>
Date: Wed, 18 Mar 2020 02:24:06 +0100
Subject: [PATCH 1/1] gnu: Add emacs-ac-geiser.
* gnu/packages/emacs-xyz.scm (emacs-ac-geiser): New variable.
---
gnu/packages/emacs-xyz.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a821bc7776..f691cd2fdf 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -63,6 +63,7 @@
;;; Copyright © 2020 Masaya Tojo <masaya@tojo.tokyo>
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
+;;; Copyright © 2020 Jérémy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -21807,3 +21808,22 @@ All entries in a specified TODO state will be carried over to the next day.")
"Daredevil SKK is a version of @acronym{SKK, Simple Kana to Kanji
conversion program}, a Japanese input method on Emacs.")
(license license:gpl2+))))
+
+(define-public emacs-ac-geiser
+ (package
+ (name "emacs-ac-geiser")
+ (version "0.1")
+ (source
+ (origin
+ (uri (git-reference
+ (url "https://github.com/xiaohanyu/ac-geiser.git")
+ (commit "502d18a8a0bd4b5fdd495a99299ba2a632c5cd9a")))
+ (method git-fetch)
+ (sha256 (base32 "0h2kakb4f5hgzf5l2kpqngalcmc4402lkg1pvs88c8z4rqp2vfvz"))))
+ (build-system emacs-build-system)
+ (propagated-inputs `(("geiser" ,emacs-geiser)
+ ("auto-complete" ,emacs-auto-complete)))
+ (synopsis "Auto-complete backend for geiser")
+ (description "Provides one auto-complete source for Scheme projects using geiser.")
+ (license license:bsd-3)
+ (home-page "https://github.com/xiaohanyu/ac-geiser")))
--
2.25.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#39739] Here is the patch updated
2020-03-18 23:22 ` [bug#39739] Here is the patch updated Jeremy Korwin-Zmijowski
@ 2020-03-19 2:39 ` Kyle Meyer
[not found] ` <9b5b3851902fa98a0f351ba41b0c956d9da5cf04.camel@korwin-zmijowski.fr>
0 siblings, 1 reply; 4+ messages in thread
From: Kyle Meyer @ 2020-03-19 2:39 UTC (permalink / raw)
To: Jeremy Korwin-Zmijowski, 39739
Hi Jérémy,
Thanks for the update and for clarifying the license with the author.
Jeremy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr> writes:
> +;;; Copyright © 2020 Jérémy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr>
This has a trivial conflict with master (4a0399e277 at the time I
applied it for testing). That'd be easy for whoever eventually commits
your patch to clean up, but, if you resend the patch for the other
reasons I mention below, it'd be good to resolve it on your end by
moving that to a newer base.
> +(define-public emacs-ac-geiser
> + (package
> + (name "emacs-ac-geiser")
> + (version "0.1")
> + (source
> + (origin
You should specify a `file-name' so that the directory in the store
contains the package name. Note that you can run `guix lint' to catch
issues like these:
$ pre-inst-env guix lint emacs-ac-geiser
gnu/packages/emacs-xyz.scm:21842:5: emacs-ac-geiser@0.1: the source
file name should contain the package name
> + (uri (git-reference
> + (url "https://github.com/xiaohanyu/ac-geiser.git")
> + (commit "502d18a8a0bd4b5fdd495a99299ba2a632c5cd9a")))
This commit is a couple of commits after the v0.1 tag, so you can
represent that with something like
(let ((commit "abcdef...")
(revision "0"))
(package
...
(version (git-version "0.1" revision commit))
(source
(origin
(uri (git-reference
(url "https://github.com/xiaohanyu/ac-geiser.git")
(commit "abcdef...")))
You can find a good number of examples in emacs-xyz.scm.
Because the author clarified the license in the next commit
(93818c936ee7e2f1ba1b315578bde363a7d43d05), I think that'd be a good
commit to use.
> + (method git-fetch)
> + (sha256 (base32 "0h2kakb4f5hgzf5l2kpqngalcmc4402lkg1pvs88c8z4rqp2vfvz"))))
Formatting/consistency nit: Most packages put "(base32 ..." on a new
line. I think the same is true, to a lesser extent, for the value of
propagated-inputs below.
> + (build-system emacs-build-system)
> + (propagated-inputs `(("geiser" ,emacs-geiser)
> + ("auto-complete" ,emacs-auto-complete)))
> + (synopsis "Auto-complete backend for geiser")
> + (description "Provides one auto-complete source for Scheme projects using geiser.")
> + (license license:bsd-3)
> + (home-page "https://github.com/xiaohanyu/ac-geiser")))
Thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#39739] Here is the patch updated
[not found] ` <9b5b3851902fa98a0f351ba41b0c956d9da5cf04.camel@korwin-zmijowski.fr>
@ 2020-03-28 3:28 ` Kyle Meyer
0 siblings, 0 replies; 4+ messages in thread
From: Kyle Meyer @ 2020-03-28 3:28 UTC (permalink / raw)
To: Jeremy Korwin-Zmijowski, 39739
Hi Jérémy,
Jeremy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr> writes:
> Hey Kyle,
>
> I hope this one can do the job !
After the last iteration you sent to address Leo's comment, the patch
looks good to me.
Thanks for the updates.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-28 3:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-22 13:29 [bug#39739] New: ac-geiser Jeremy Korwin-Zmijowski
2020-03-18 23:22 ` [bug#39739] Here is the patch updated Jeremy Korwin-Zmijowski
2020-03-19 2:39 ` Kyle Meyer
[not found] ` <9b5b3851902fa98a0f351ba41b0c956d9da5cf04.camel@korwin-zmijowski.fr>
2020-03-28 3:28 ` Kyle Meyer
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).