unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58692] [PATCH] gnu: Add emacs-tokei.
@ 2022-10-21 17:45 jgart via Guix-patches via
  2022-10-22  9:16 ` Liliana Marie Prikler
  0 siblings, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-10-21 17:45 UTC (permalink / raw)
  To: 58692; +Cc: jgart

* gnu/packages/emacs-xyz.scm (emacs-tokei): New variable.
---
 gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index eef7b54777..af2a89c1d5 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -24395,6 +24395,42 @@ (define-public emacs-hackernews
 News homepage.")
     (license license:gpl3)))
 
+(define-public emacs-tokei
+  (package
+    (name "emacs-tokei")
+    (version "0.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/nagy/tokei.el")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0gcjlcfxd4bg123gjf7d0vfvfd6zpd0da8svynglca1qhp77jkx1"))))
+    (build-system emacs-build-system)
+    (inputs (list tokei))
+    (propagated-inputs (list emacs-magit))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'configure
+           (lambda* (#:key inputs #:allow-other-keys)
+               ;; .el is read-only in git.
+               (make-file-writable "tokei.el")
+               ;; Specify the absolute file name of tokei so that everything
+               ;; works out-of-the-box.
+               (emacs-substitute-variables "tokei.el"
+                 ("tokei-program"
+                  (search-input-file inputs "/bin/tokei"))))))))
+    (home-page "https://github.com/nagy/tokei.el")
+    (synopsis "Display codebase statistics in Emacs")
+    (description 
+"@code{emacs-tokei} is a major-mode for Emacs, that displays codebase
+statistics with the help of @code{tokei}.")
+    (license license:gpl3+)))
+
 (define-public emacs-youtube-dl
   (let ((commit "af877b5bc4f01c04fccfa7d47a2c328926f20ef4")
         (revision "2"))
-- 
2.38.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#58692] [PATCH] gnu: Add emacs-tokei.
  2022-10-21 17:45 [bug#58692] [PATCH] gnu: Add emacs-tokei jgart via Guix-patches via
@ 2022-10-22  9:16 ` Liliana Marie Prikler
  2022-10-22 13:54   ` jgart via Guix-patches via
  0 siblings, 1 reply; 4+ messages in thread
From: Liliana Marie Prikler @ 2022-10-22  9:16 UTC (permalink / raw)
  To: jgart, 58692

Am Freitag, dem 21.10.2022 um 12:45 -0500 schrieb jgart:
> * gnu/packages/emacs-xyz.scm (emacs-tokei): New variable.
Reindented, converted to G-Expressions, and pushed.

Cheers




^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#58692] [PATCH] gnu: Add emacs-tokei.
  2022-10-22  9:16 ` Liliana Marie Prikler
@ 2022-10-22 13:54   ` jgart via Guix-patches via
  2022-10-22 17:21     ` bug#58692: " Liliana Marie Prikler
  0 siblings, 1 reply; 4+ messages in thread
From: jgart via Guix-patches via @ 2022-10-22 13:54 UTC (permalink / raw)
  To: Liliana Marie Prikler; +Cc: 58692

On Sat, 22 Oct 2022 11:16:59 +0200 Liliana Marie Prikler <liliana.prikler@gmail.com> wrote:
> Am Freitag, dem 21.10.2022 um 12:45 -0500 schrieb jgart:
> > * gnu/packages/emacs-xyz.scm (emacs-tokei): New variable.
> Reindented, converted to G-Expressions, and pushed.
> 
> Cheers

Thanks! Much appreciated




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#58692: [PATCH] gnu: Add emacs-tokei.
  2022-10-22 13:54   ` jgart via Guix-patches via
@ 2022-10-22 17:21     ` Liliana Marie Prikler
  0 siblings, 0 replies; 4+ messages in thread
From: Liliana Marie Prikler @ 2022-10-22 17:21 UTC (permalink / raw)
  To: jgart; +Cc: 58692-done

Am Samstag, dem 22.10.2022 um 08:54 -0500 schrieb jgart:
> On Sat, 22 Oct 2022 11:16:59 +0200 Liliana Marie Prikler
> <liliana.prikler@gmail.com> wrote:
> > Am Freitag, dem 21.10.2022 um 12:45 -0500 schrieb jgart:
> > > * gnu/packages/emacs-xyz.scm (emacs-tokei): New variable.
> > Reindented, converted to G-Expressions, and pushed.
> > 
> > Cheers
> 
> Thanks! Much appreciated
Now with 100% more done marks.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-10-23 23:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-21 17:45 [bug#58692] [PATCH] gnu: Add emacs-tokei jgart via Guix-patches via
2022-10-22  9:16 ` Liliana Marie Prikler
2022-10-22 13:54   ` jgart via Guix-patches via
2022-10-22 17:21     ` bug#58692: " Liliana Marie Prikler

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).