From dc053d17b7893251430f0ea8a95adf7477ea350e Mon Sep 17 00:00:00 2001 From: Kyle Andrews Date: Wed, 3 May 2023 09:46:45 +0200 Subject: [PATCH] gnu: emacs-tldr: Include unzip dependency. * gnu/packages/emacs-xyz.scm (emacs-tldr)[arguments]<#:phases>: Add a phase to avoid propagating unzip. [inputs]: Add unzip. Signed-off-by: Nicolas Goaziou --- gnu/packages/emacs-xyz.scm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 3fa367ce74..e1fde9657a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -27735,6 +27735,18 @@ leader key in vim), and much more.") "1bw6la463l2yfm7rp76ga4makfy4kpxgwi7ni5gxk31w11g26ryk")) (file-name (git-file-name name version)))) (build-system emacs-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-unzip-location + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "tldr.el" + (("\"unzip") + (string-append "\"" + (search-input-file inputs "/bin/unzip"))))))))) + (inputs + (list unzip)) (propagated-inputs (list emacs-request)) (synopsis "Simplified and community-driven man pages for Emacs")