summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-03-18 15:52:19 +0100
committerLudovic Courtès <ludo@gnu.org>2022-03-18 16:03:34 +0100
commit09c7eeb6599db41a3c4b53b998049141affddf33 (patch)
tree2e26d70e73a544dfffbf3cae55465b948bb9fbad
parent0011dd0a01278b747dca9e5ede896813617d4a96 (diff)
downloadguix-09c7eeb6599db41a3c4b53b998049141affddf33.tar.gz
gnu: emacs-osm: Record the absolute file name of 'curl'.
* gnu/packages/emacs-xyz.scm (emacs-osm)[arguments, inputs]: New fields.
-rw-r--r--gnu/packages/emacs-xyz.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 4089312085..dcd36291fb 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -30817,6 +30817,16 @@ audio volume via amixer.")
        (sha256
         (base32 "0aiq2z9vv4jsl0s0x9vpjgp0mnn27wanhirzj3h80ivgiphzs7l5"))))
     (build-system emacs-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (add-after 'unpack 'set-curl-file-name
+                    (lambda* (#:key inputs #:allow-other-keys)
+                      (substitute* "osm.el"
+                        (("\"curl( ?)\"" _ space)
+                         (string-append "\""
+                                        (search-input-file inputs "/bin/curl")
+                                        space "\""))))))))
+    (inputs (list curl))
     (synopsis "OpenStreetMap viewer for Emacs")
     (description
      "This package provides an OpenStreetMap viewer for Emacs, featuring