summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Rohleder <mike@rohleder.de>2022-10-22 20:43:14 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-10-30 10:34:57 +0100
commit5b8b38d33aaea049630ba5a68f97403a90bfa6e5 (patch)
treeda65590070eca0a8ce86d1454c364bac114554cc
parent2727cebef3975f2b446554194b7a34592df30373 (diff)
downloadguix-5b8b38d33aaea049630ba5a68f97403a90bfa6e5.tar.gz
gnu: emacs-plz: Patch path to curl.
* gnu/packages/emacs-xyz.scm (emacs-plz)[arguments]: Add phase substitute-curl-path.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/emacs-xyz.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b4d678499e..0f5de36a5c 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -17203,6 +17203,15 @@ multiplexer.")
         (base32 "0p0xd532xa8icysyxwqk481lr9xanmp68gf97fd9n2936gp12chv"))))
     (build-system emacs-build-system)
     (inputs (list curl))
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'substitute-curl-path
+            (lambda* (#:key inputs #:allow-other-keys)
+              (make-file-writable "plz.el")
+              (emacs-substitute-variables "plz.el"
+                ("plz-curl-program" (search-input-file inputs "/bin/curl"))))))))
     (home-page "https://github.com/alphapapa/plz.el")
     (synopsis "HTTP library for Emacs")
     (description