about summary refs log tree commit diff
path: root/pkgs/games/classicube/font-location.patch
diff options
context:
space:
mode:
authorrian <19516527+360ied@users.noreply.github.com>2022-09-09 09:45:59 +0000
committerGitHub <noreply@github.com>2022-09-09 11:45:59 +0200
commitaa4f7078b95df91d204a30f0ccd3fc8dc4b09118 (patch)
treeeee075b4ac3321553e726ed222af6b098bdb65cb /pkgs/games/classicube/font-location.patch
parentb41f6fe5814876581976c58ac34e08ba37edf2c7 (diff)
classicube: init at 1.3.2 (#189491)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/games/classicube/font-location.patch')
-rw-r--r--pkgs/games/classicube/font-location.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/games/classicube/font-location.patch b/pkgs/games/classicube/font-location.patch
new file mode 100644
index 0000000000000..48428a8bb94fb
--- /dev/null
+++ b/pkgs/games/classicube/font-location.patch
@@ -0,0 +1,16 @@
+diff --git a/src/Platform_Posix.c b/src/Platform_Posix.c
+index bca992d..3540afa 100644
+--- a/src/Platform_Posix.c
++++ b/src/Platform_Posix.c
+@@ -440,9 +440,8 @@ void Platform_LoadSysFonts(void) {
+ 		String_FromConst("/Library/Fonts")
+ 	};
+ #else
+-	static const cc_string dirs[2] = {
+-		String_FromConst("/usr/share/fonts"),
+-		String_FromConst("/usr/local/share/fonts")
++	static const cc_string dirs[1] = {
++		String_FromConst("%NIXPKGS_FONT_PATH%")
+ 	};
+ #endif
+ 	for (i = 0; i < Array_Elems(dirs); i++) {