From e91d2f7868204852b115a2b61bf0d9a5dab5e621 Mon Sep 17 00:00:00 2001 From: jgart Date: Thu, 10 Oct 2024 08:07:11 -0500 Subject: [PATCH] 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 @@ (define-public emacs-zig-mode 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")