emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#51120: closed ([PATCH] gnu: emacs-org-roam: Reference dot with absol


From: GNU bug Tracking System
Subject: bug#51120: closed ([PATCH] gnu: emacs-org-roam: Reference dot with absolute path.)
Date: Fri, 15 Oct 2021 21:31:01 +0000

Your message dated Sat, 16 Oct 2021 03:00:38 +0530
with message-id <87v91yrn5t.fsf@systemreboot.net>
and subject line Re: [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot 
with absolute path.
has caused the debbugs.gnu.org bug report #51120,
regarding [PATCH] gnu: emacs-org-roam: Reference dot with absolute path.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
51120: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=51120
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: emacs-org-roam: Reference dot with absolute path. Date: Mon, 11 Oct 2021 00:47:12 +0530
* 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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot with absolute path. Date: Sat, 16 Oct 2021 03:00:38 +0530
Thanks, Nicolas! I've pushed this to master.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

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