all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#31866] [PATCH] gnu: emacs-image+: Don't propagate inputs.
@ 2018-06-16 22:32 Pierre Neidhardt
  2018-06-18 21:18 ` bug#31866: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Neidhardt @ 2018-06-16 22:32 UTC (permalink / raw)
  To: 31866

* gnu/packages/emacs.scm (emacs-image+)[propagated-inputs]: Remove imagemagick
[Inputs]: Add imagemagick
[arguments]: Substitute path to imagemagick commands
---
 gnu/packages/emacs.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 4999dda55..b81706248 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -11204,7 +11204,22 @@ provided by other Emacs packages dealing with pass:
           (base32
            "0v66wk9nh0raih4jhrzmmyi5lbysjnmbv791vm2230ffi2hmwxnd"))))
       (build-system emacs-build-system)
-      (propagated-inputs `(("imagemagick" ,imagemagick)))
+      (inputs `(("imagemagick" ,imagemagick)))
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'configure
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (let ((imagemagick (assoc-ref inputs "imagemagick")))
+                 ;; Specify the absolute file names of the various
+                 ;; programs so that everything works out-of-the-box.
+                 (chmod "image+.el" #o666)
+                 (emacs-substitute-variables
+                     "image+.el"
+                   ("imagex-convert-command"
+                    (string-append imagemagick "/bin/convert"))
+                   ("imagex-identify-command"
+                    (string-append imagemagick "/bin/identify")))))))))
       (home-page "https://github.com/mhayashi1120/Emacs-imagex")
       (synopsis "Image manipulation extensions for Emacs")
       (description
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#31866: [PATCH] gnu: emacs-image+: Don't propagate inputs.
  2018-06-16 22:32 [bug#31866] [PATCH] gnu: emacs-image+: Don't propagate inputs Pierre Neidhardt
@ 2018-06-18 21:18 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-06-18 21:18 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 31866-done

Pierre Neidhardt <ambrevar@gmail.com> skribis:

> * gnu/packages/emacs.scm (emacs-image+)[propagated-inputs]: Remove imagemagick
> [Inputs]: Add imagemagick
> [arguments]: Substitute path to imagemagick commands

Good idea.  Applied, thanks!

Ludo'.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-18 21:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-16 22:32 [bug#31866] [PATCH] gnu: emacs-image+: Don't propagate inputs Pierre Neidhardt
2018-06-18 21:18 ` bug#31866: " Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.