[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: gnu: openttd: Let the music play.
From: |
guix-commits |
Subject: |
03/09: gnu: openttd: Let the music play. |
Date: |
Tue, 19 Apr 2022 14:37:39 -0400 (EDT) |
lilyp pushed a commit to branch master
in repository guix.
commit f044d951b0122b15199efeba396bbe584f8ef86d
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sat Nov 6 14:06:58 2021 +0100
gnu: openttd: Let the music play.
* gnu/packages/games.scm (openttd)[inputs]: Remove timidity++.
Add fluidsynth and freepats-gm.
[#:phases]<patch-sources>: New phase.
---
gnu/packages/games.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index de398c297f..ae3636596d 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -4448,6 +4448,15 @@ Transport Tycoon Deluxe.")
(list (string-append "-DCMAKE_INSTALL_BINDIR=" out "/bin")))
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-sources
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "src/music/fluidsynth.cpp"
+ (("default_sf\\[\\] = \\{" all)
+ (string-append all "
+\t/* Guix hardcoded :P */
+\t\"" (string-append (assoc-ref inputs "freepats-gm")
+ "/share/soundfonts/FreePatsGM.sf2") "\",
+")))))
(add-before 'check 'install-data
(lambda* (#:key inputs outputs #:allow-other-keys)
(for-each
@@ -4457,7 +4466,7 @@ Transport Tycoon Deluxe.")
(list "opengfx" "openmsx" "opensfx")))))))
(inputs
(modify-inputs (package-inputs openttd-engine)
- (prepend timidity++)))
+ (prepend fluidsynth freepats-gm)))
(native-inputs
`(("opengfx" ,openttd-opengfx)
("openmsx" ,openttd-openmsx)
- branch master updated (cd23250c16 -> 0b681c5896), guix-commits, 2022/04/19
- 04/09: gnu: openttd-engine: Drop labels from inputs., guix-commits, 2022/04/19
- 07/09: gnu: openttd-openmsx: Use new package style., guix-commits, 2022/04/19
- 03/09: gnu: openttd: Let the music play.,
guix-commits <=
- 01/09: gnu: gnome-shell-extension-just-perfection: Update to 20.0., guix-commits, 2022/04/19
- 02/09: gnu: Add freepats-gm., guix-commits, 2022/04/19
- 06/09: gnu: openttd-opensfx: Use new package style., guix-commits, 2022/04/19
- 09/09: gnu: komikku: Update to 0.38.0., guix-commits, 2022/04/19
- 05/09: gnu: openttd-gfx: Use new package style., guix-commits, 2022/04/19
- 08/09: gnu: openttd: Use new package style., guix-commits, 2022/04/19