gnu: teeworlds: Replace bundled font.

* gnu/packages/games.scm (teeworlds)[arguments]: Add phase to replace
bundled font.
[inputs]: Add font-dejagnu.
This commit is contained in:
Efraim Flashner 2021-09-14 16:23:55 +03:00
parent e4f8bfb348
commit a0d38c01e8
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -6244,9 +6244,17 @@ (define-public teeworlds
(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)