GNU bug report logs - #70708
[PATCH] gnu: hyperrogue: correct font path

Previous Next

Package: guix-patches;

Reported by: Tadhg McDonald-Jensen <tadhgmister <at> gmail.com>

Date: Thu, 2 May 2024 04:41:01 UTC

Severity: normal

Tags: patch

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tadhg McDonald-Jensen <tadhgmister <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: hyperrogue: correct font path
Date: Wed, 1 May 2024 20:52:43 -0400
* gnu/packages/games.scm (hyperrogue):
  correct font path to use font-dejavu package instead of
  font in hyperrogue source code.

Change-Id: I12a108e3fc2375d9bacd1ab1d2ad4e15144b602f
---
 gnu/packages/games.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 57e6c23f41..0ebe18c4be 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -6473,9 +6473,9 @@ (define-public hyperrogue
           (replace 'configure
             (lambda* (#:key inputs #:allow-other-keys)
               (let ((share-dir (string-append #$output 
"/share/hyperrogue/"))
-                    (fonts-dir (dirname
-                                (search-input-file inputs
- 
"DejaVuSans-Bold.ttf"))))
+                    (fonts-dir (string-append
+                                 (assoc-ref inputs "font-dejavu")
+                                 "/share/fonts/truetype")))
                 ;; Set fonts and music path.
                 (substitute* "sysconfig.h"
                   (("(#define HYPERPATH ).*" _ lead)

base-commit: 4514239971895fc7ad47c7752e30d98a0c44a154
--
2.41.0




This bug report was last modified 43 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.