guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: teeworlds: Replace bundled font.


From: guix-commits
Subject: 01/02: gnu: teeworlds: Replace bundled font.
Date: Tue, 14 Sep 2021 09:40:18 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit a0d38c01e8434dbeb5fc1a352bbe22af5759c40d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Sep 14 16:23:55 2021 +0300

    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 d12de29..69d2ce7 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]