aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorjgart <jgart@dismail.de>2022-10-21 12:45:48 -0500
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2022-10-22 11:12:11 +0200
commitc2b263fcb75fa0ddf82a5217a83f76b021f55e7b (patch)
tree74fe7bc0b309afbb01bce0fa277c726567b4ec20 /gnu
parent2902def73e3d9d671099cbbea7fcc59b12c10ec8 (diff)
downloadguix-c2b263fcb75fa0ddf82a5217a83f76b021f55e7b.tar
guix-c2b263fcb75fa0ddf82a5217a83f76b021f55e7b.tar.gz
gnu: Add emacs-tokei.
* gnu/packages/emacs-xyz.scm (emacs-tokei): New variable. Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/emacs-xyz.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index eef7b54777..06ec9dd904 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -24395,6 +24395,43 @@ stories. The default feed is top stories, which corresponds to the Hacker
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)
+ (arguments
+ (list
+ #: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"))))))))
+ (inputs (list tokei))
+ (propagated-inputs (list emacs-magit))
+ (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"))