summaryrefslogtreecommitdiff
path: root/tw/packages
diff options
context:
space:
mode:
authorTimo Wilken2023-05-01 14:15:03 +0200
committerTimo Wilken2023-05-01 14:15:03 +0200
commit48dd8ad2bd87c17843e94abc8f10403e5a45e80a (patch)
tree967f5229a4d08f3788c8821416c25ea1aec417d1 /tw/packages
parent70bf439e35b014cc5fd0fdc6dc41dc74b0236ee1 (diff)
Build simutrans with the right name in the first place
Diffstat (limited to 'tw/packages')
-rw-r--r--tw/packages/games.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/tw/packages/games.scm b/tw/packages/games.scm
index 68fa2f62..36c1c24d 100644
--- a/tw/packages/games.scm
+++ b/tw/packages/games.scm
@@ -89,7 +89,7 @@
(arguments
`(#:make-flags
'("VERBOSE=1" "OPTIMISE=1" "OSTYPE=linux" "BACKEND=sdl2" "MULTI_THREAD=1"
- "USE_ZSTD=1" "USE_FREETYPE=1" "USE_FLUIDSYNTH_MIDI=1")
+ "USE_ZSTD=1" "USE_FREETYPE=1" "USE_FLUIDSYNTH_MIDI=1" "PROG=simutrans")
#:tests? #f ; tests don't work as SDL2 can't find a video device
#:test-target "test" ; run "make test" for tests
#:phases
@@ -110,9 +110,7 @@
(let ((out (assoc-ref outputs "out")))
;; Install "real" simutrans executable into libexec, as we need
;; a wrapper script to be installed by `simutrans-pak-union'.
- (with-directory-excursion "build/default"
- (rename-file "sim" "simutrans")
- (install-file "simutrans" (string-append out "/libexec")))
+ (install-file "build/default/simutrans" (string-append out "/libexec"))
;; Install game data bundled with simutrans (not the pak).
(let ((data (string-append out "/share/games/simutrans")))