From patchwork Sun Oct 10 19:17:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 33744 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2928727BBE3; Sun, 10 Oct 2021 20:18:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CB6E527BBE1 for ; Sun, 10 Oct 2021 20:18:12 +0100 (BST) Received: from localhost ([::1]:60938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mZeKp-0003wr-Pc for patchwork@mira.cbaines.net; Sun, 10 Oct 2021 15:18:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZeKh-0003wF-Ha for guix-patches@gnu.org; Sun, 10 Oct 2021 15:18:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mZeKg-0001p1-A9 for guix-patches@gnu.org; Sun, 10 Oct 2021 15:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mZeKg-0006cf-1M for guix-patches@gnu.org; Sun, 10 Oct 2021 15:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51120] [PATCH] gnu: emacs-org-roam: Reference dot with absolute path. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 10 Oct 2021 19:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51120 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51120@debbugs.gnu.org Cc: Arun Isaac X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163389346025426 (code B ref -1); Sun, 10 Oct 2021 19:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Oct 2021 19:17:40 +0000 Received: from localhost ([127.0.0.1]:55867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZeKJ-0006c2-Qr for submit@debbugs.gnu.org; Sun, 10 Oct 2021 15:17:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:35996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mZeKF-0006br-If for submit@debbugs.gnu.org; Sun, 10 Oct 2021 15:17:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZeKD-0003rH-Q3 for guix-patches@gnu.org; Sun, 10 Oct 2021 15:17:34 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:54382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mZeKA-0001bt-Ej for guix-patches@gnu.org; Sun, 10 Oct 2021 15:17:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WHVlhidEd1MNHGVFFzyY2wPCyg8nSGHuGqis4emBSB4=; b=TBFOvb84dZd33uhf9dSYnmtqpg 1fUw0AGGDw6bmMJhOyu3AnOdq+dM8wvtWFIqOQ3z8XtqWoQuNS2NMEdzMcwjA0czvJvnlzxSFanWR 1nsbFXWl9/8jNbHFgyLA+0b+kc+QOeye8X4kO/c2KeFGtf7cTXqHx0TpR5l9Xq9CQEIPfnpGvC1T6 kSAV3z239ptnXx7DhjkWcQqCiSRXZ54vfxTWwDuXFoWfxpvypQXg9vl6Mb0Trcyszn00QaPn+tSih NFleSXiWEMbf/r5wpFGHe5r5+2Auocl/atsE8CPllmx/Ctp9O1EnTzjmsgGZAq7gd9tqNgA0VS4iI OOkfyI7Q==; Received: from [192.168.2.1] (port=47992 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mZeK2-000Nik-37; Mon, 11 Oct 2021 00:47:22 +0530 From: Arun Isaac Date: Mon, 11 Oct 2021 00:47:12 +0530 Message-Id: <20211010191712.13507-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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