From 2b1ae1cffc6a94935c2501c393ee210c2cf68c16 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 27 Sep 2023 15:37:54 +0300 Subject: [PATCH] gnu: emacs-elfeed: Patch curl executable. Reported by bienjensu on IRC. * gnu/packages/emacs-xyz.scm (emacs-elfeed)[arguments]: Add a phase to patch a call to the curl binary. [inputs]: Add curl. --- gnu/packages/emacs-xyz.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index d19f8e9f81..1f2334e409 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -13856,7 +13856,16 @@ and tooling.") (build-system emacs-build-system) (arguments `(#:tests? #t - #:test-command '("make" "test"))) + #:test-command '("make" "test") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-program-calls + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "elfeed-curl.el" + ("elfeed-curl-program-name" + (search-input-file inputs "/bin/curl")))))))) + (inputs + (list curl)) (home-page "https://github.com/skeeto/elfeed") (synopsis "Atom/RSS feed reader for Emacs") (description