jgart pushed a commit to branch master
in repository guix.
commit e91d2f7868204852b115a2b61bf0d9a5dab5e621
Author: jgart <[email protected]>
AuthorDate: Thu Oct 10 08:07:11 2024 -0500
gnu: Add emacs-zk.
* gnu/packages/emacs-xyz.scm (emacs-zk): New variable.
Change-Id: Iaa2978ece44faef01d6a57ff65e178dcfd925db2
---
gnu/packages/emacs-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6d56e4e4a6..ba5cc98dc0 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7652,6 +7652,45 @@ Emacs, inspired by @code{Dracula} theme.")
for the Zig programming language in Emacs.")
(license license:gpl3+))))
+(define-public emacs-zk
+ (package
+ (name "emacs-zk")
+ (version "0.7")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://github.com/localauthor/zk/")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0449zsahyzvjlhv27lkj33ybnq86j47paww779zd0qhq550hdnjs"))))
+ (arguments
+ (list
+ #:tests? #f ; There are no tests.
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "zk.el"
+ (("\"grep")
+ (string-append
+ "\""
+ (search-input-file inputs "/bin/grep")))
+ (("\"egrep")
+ (string-append
+ "\""
+ (search-input-file inputs "/bin/egrep")))))))))
+ (propagated-inputs (list emacs-citar emacs-link-hint))
+ (inputs (list grep))
+ (build-system emacs-build-system)
+ (home-page "https://github.com/localauthor/zk/")
+ (synopsis "Zettelkasten-style linked notes for Emacs")
+ (description
+ "Emacs packages for working with Zettelkasten-style linked notes.")
+ (license license:gpl3+)))
+
(define-public emacs-znc
(package
(name "emacs-znc")