aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/games.scm
diff options
context:
space:
mode:
authorKei Kebreau <kei@openmailbox.org>2017-06-18 13:45:19 -0400
committerKei Kebreau <kei@openmailbox.org>2017-06-20 19:50:27 -0400
commitca508f1cfb1c01b0515d1d1c5f04b88fc7e70c8a (patch)
tree40683c0654846fd35a8326bf449af5accd7ceada /gnu/packages/games.scm
parent4df9495e685596f9a1c3a998eac990ff41a0b5f0 (diff)
downloadpatches-ca508f1cfb1c01b0515d1d1c5f04b88fc7e70c8a.tar
patches-ca508f1cfb1c01b0515d1d1c5f04b88fc7e70c8a.tar.gz
gnu: openttd: Add 'install-data' phase.
* gnu/packages/games.scm (openttd)[arguments]: Add it. [native-inputs]: Add openttd-opengfx.
Diffstat (limited to 'gnu/packages/games.scm')
-rw-r--r--gnu/packages/games.scm20
1 files changed, 19 insertions, 1 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 1af6409de3..730fde68d8 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2359,7 +2359,25 @@ OpenGFX provides you with...
(define-public openttd
(package
(inherit openttd-engine)
- (name "openttd")))
+ (name "openttd")
+ (arguments
+ (substitute-keyword-arguments (package-arguments openttd-engine)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'install 'install-data
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let*
+ ((opengfx (assoc-ref inputs "opengfx"))
+ (out (assoc-ref outputs "out"))
+ (gfx-dir
+ (string-append out
+ "/share/games/openttd/baseset/opengfx")))
+ (mkdir-p gfx-dir)
+ (copy-recursively opengfx gfx-dir))
+ #t))))))
+ (native-inputs
+ `(("opengfx" ,openttd-opengfx)
+ ,@(package-native-inputs openttd-engine)))))
(define-public pinball
(package