From a0d38c01e8434dbeb5fc1a352bbe22af5759c40d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 14 Sep 2021 16:23:55 +0300 Subject: gnu: teeworlds: Replace bundled font. * gnu/packages/games.scm (teeworlds)[arguments]: Add phase to replace bundled font. [inputs]: Add font-dejagnu. --- gnu/packages/games.scm | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- cgit v1.2.3