unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot with absolute path.
@ 2021-10-10 19:17 Arun Isaac
  2021-10-13 19:29 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Arun Isaac @ 2021-10-10 19:17 UTC (permalink / raw)
  To: 51120; +Cc: Arun Isaac

* gnu/packages/emacs-xyz.scm (emacs-org-roam)[inputs]: Add graphviz.
[arguments]: Add patch-exec-paths phase substituting absolute store path to
dot.
---
 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 582cfe4552..b12f861376 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -153,6 +153,7 @@
   #:use-module (gnu packages guile)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages gnome)
+  #:use-module (gnu packages graphviz)
   #:use-module (gnu packages haskell-apps)
   #:use-module (gnu packages ibus)
   #:use-module (gnu packages java)
@@ -28370,6 +28371,13 @@ snippets for Emacs.")
                            (rename-file f (basename f)))
                          el-files))
              #t))
+         (add-after 'move-source-files 'patch-exec-paths
+           (lambda* (#:key inputs #:allow-other-keys)
+             (make-file-writable "org-roam-graph.el")
+             (emacs-substitute-variables "org-roam-graph.el"
+               ("org-roam-graph-executable"
+                (string-append (assoc-ref inputs "graphviz")
+                               "/bin/dot")))))
          (add-after 'install 'install-image
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
@@ -28382,6 +28390,8 @@ snippets for Emacs.")
                  (invoke "makeinfo" "-o" "org-roam.info" "org-roam.texi")
                  (install-file "org-roam.info"
                                (string-append out "/share/info")))))))))
+       (inputs
+        `(("graphviz" ,graphviz)))
        (native-inputs
         `(("texinfo" ,texinfo)))
        (propagated-inputs
-- 
2.33.0





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

* [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot with absolute path.
  2021-10-10 19:17 [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot with absolute path Arun Isaac
@ 2021-10-13 19:29 ` Nicolas Goaziou
  2021-10-15 21:30   ` bug#51120: " Arun Isaac
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2021-10-13 19:29 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 51120

Hello,

Arun Isaac <arunisaac@systemreboot.net> writes:

> * gnu/packages/emacs-xyz.scm (emacs-org-roam)[inputs]: Add graphviz.
> [arguments]: Add patch-exec-paths phase substituting absolute store path to
> dot.

LGTM!

Regards,
-- 
Nicolas Goaziou




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

* bug#51120: [PATCH] gnu: emacs-org-roam: Reference dot with absolute path.
  2021-10-13 19:29 ` Nicolas Goaziou
@ 2021-10-15 21:30   ` Arun Isaac
  0 siblings, 0 replies; 3+ messages in thread
From: Arun Isaac @ 2021-10-15 21:30 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 51120-done

[-- Attachment #1: Type: text/plain, Size: 46 bytes --]


Thanks, Nicolas! I've pushed this to master.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 524 bytes --]

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

end of thread, other threads:[~2021-10-15 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-10 19:17 [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot with absolute path Arun Isaac
2021-10-13 19:29 ` Nicolas Goaziou
2021-10-15 21:30   ` bug#51120: " Arun Isaac

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).