summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/emacs-xyz.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a4f26ed3c0..32d905aa80 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -276,14 +276,16 @@ using geiser.")
          ;; Fix build issues about missing "domainname" and "hpmap:dir-user"
          ;; parent dir.
          (add-after 'unpack 'fix-build
-           (lambda _
+           (lambda* (#:key inputs #:allow-other-keys)
              (substitute* "hypb.el"
-               (("(/usr)?/bin/domainname") "/bin/hostname"))
+               (("/bin/domainname")
+                (string-append (assoc-ref inputs "inetutils")
+                               "/bin/dnsdomainname")))
              (substitute* "hyperbole.el"
                (("\\(hyperb:check-dir-user\\)") ""))
              #t)))))
-    (propagated-inputs
-     `(("inetutils" ,inetutils)))       ;for hostname
+    (inputs
+     `(("inetutils" ,inetutils)))
     (home-page "https://www.gnu.org/software/hyperbole/")
     (synopsis "The Everyday Hypertextual Information Manager")
     (description