mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: minetest: Fix absolute path to 'rm' command.
* gnu/packages/games.scm (minetest)[patch-sources]: Substitute '/bin/rm' path. [inputs]: Add coreutils. Signed-off-by: Leo Prikler <leo.prikler@student.tugraz.at>
This commit is contained in:
parent
a758a8a3c2
commit
c5e149a9d9
1 changed files with 9 additions and 3 deletions
|
@ -52,7 +52,7 @@
|
||||||
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
|
;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
|
||||||
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
|
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
|
||||||
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
|
;;; Copyright © 2020, 2021 Michael Rohleder <mike@rohleder.de>
|
||||||
;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
|
;;; Copyright © 2020, 2021 Trevor Hass <thass@okstate.edu>
|
||||||
;;; Copyright © 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
|
;;; Copyright © 2020, 2021 Leo Prikler <leo.prikler@student.tugraz.at>
|
||||||
;;; Copyright © 2020 Lu hux <luhux@outlook.com>
|
;;; Copyright © 2020 Lu hux <luhux@outlook.com>
|
||||||
;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
|
;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
|
||||||
|
@ -3486,8 +3486,13 @@ (define-public minetest
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-sources
|
(add-after 'unpack 'patch-sources
|
||||||
(lambda _
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "src/filesys.cpp"
|
||||||
|
;; Use store-path for "rm" instead of non-existing FHS path.
|
||||||
|
(("\"/bin/rm\"")
|
||||||
|
(string-append "\"" (assoc-ref inputs "coreutils") "/bin/rm\"")))
|
||||||
(substitute* "src/CMakeLists.txt"
|
(substitute* "src/CMakeLists.txt"
|
||||||
|
;; Let minetest binary remain in build directory.
|
||||||
(("set\\(EXECUTABLE_OUTPUT_PATH .*\\)") ""))
|
(("set\\(EXECUTABLE_OUTPUT_PATH .*\\)") ""))
|
||||||
(substitute* "src/unittest/test_servermodmanager.cpp"
|
(substitute* "src/unittest/test_servermodmanager.cpp"
|
||||||
;; do no override MINETEST_SUBGAME_PATH
|
;; do no override MINETEST_SUBGAME_PATH
|
||||||
|
@ -3511,7 +3516,8 @@ (define-public minetest
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("pkg-config" ,pkg-config)))
|
`(("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("curl" ,curl)
|
`(("coreutils" ,coreutils)
|
||||||
|
("curl" ,curl)
|
||||||
("freetype" ,freetype)
|
("freetype" ,freetype)
|
||||||
("gettext" ,gettext-minimal)
|
("gettext" ,gettext-minimal)
|
||||||
("gmp" ,gmp)
|
("gmp" ,gmp)
|
||||||
|
|
Loading…
Reference in a new issue