guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/17: gnu: emacs-osm: Record the absolute file name of 'curl'.


From: guix-commits
Subject: 11/17: gnu: emacs-osm: Record the absolute file name of 'curl'.
Date: Fri, 18 Mar 2022 11:05:29 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 09c7eeb6599db41a3c4b53b998049141affddf33
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Mar 18 15:52:19 2022 +0100

    gnu: emacs-osm: Record the absolute file name of 'curl'.
    
    * gnu/packages/emacs-xyz.scm (emacs-osm)[arguments, inputs]: New fields.
---
 gnu/packages/emacs-xyz.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]