gnu: q5go: Fix build.

* gnu/packages/games.scm (q5go)[arguments]: Add 'fix-header' phase.
This commit is contained in:
Guillaume Le Vaillant 2021-09-18 15:03:41 +02:00
parent a9798a0abe
commit 642fcb1d08
No known key found for this signature in database
GPG key ID: 6BE8208ADF21FE3F

View file

@ -10121,6 +10121,11 @@ (define-public q5go
(("qtchooser -run-tool=(.*) -qt=qt5" _ command)
command))
#t))
(add-after 'unpack 'fix-header
(lambda _
(substitute* "src/bitarray.h"
(("#include <cstring>" all)
(string-append all "\n#include <stdexcept>")))))
(add-after 'unpack 'fix-paths
(lambda _
(substitute* '("src/pics/Makefile.in"