aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/games.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-09-14 16:23:55 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-09-14 16:23:55 +0300
commita0d38c01e8434dbeb5fc1a352bbe22af5759c40d (patch)
tree64282643a634ec0acf3b3a2e9d304a21887460f1 /gnu/packages/games.scm
parente4f8bfb3488cca0593327a983a368acceae6b352 (diff)
downloadguix-a0d38c01e8434dbeb5fc1a352bbe22af5759c40d.tar
guix-a0d38c01e8434dbeb5fc1a352bbe22af5759c40d.tar.gz
gnu: teeworlds: Replace bundled font.
* gnu/packages/games.scm (teeworlds)[arguments]: Add phase to replace bundled font. [inputs]: Add font-dejagnu.
Diffstat (limited to 'gnu/packages/games.scm')
-rw-r--r--gnu/packages/games.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index d12de29ef4..69d2ce792a 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -6244,9 +6244,17 @@ small robot living in the nano world, repair its maker.")
(assoc-ref outputs "out")
"/share/teeworlds/data"
"\"")))
+ #t))
+ (add-after 'unpack 'replace-font
+ (lambda* (#:key inputs #:allow-other-keys)
+ (delete-file "datasrc/fonts/DejaVuSans.ttf")
+ (symlink (string-append (assoc-ref inputs "font-dejavu")
+ "/share/fonts/truetype/DejaVuSans.ttf")
+ "datasrc/fonts/DejaVuSans.ttf")
#t)))))
(inputs
`(("freetype" ,freetype)
+ ("font-dejavu" ,font-dejavu)
("glu" ,glu)
("json-parser" ,json-parser)
("mesa" ,mesa)