summary refs log tree commit diff
path: root/gnu/packages/games.scm
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2023-08-15 19:39:52 +0800
committer宋文武 <iyzsong@member.fsf.org>2023-08-23 18:49:23 +0800
commit3ce3466311953cc5f00a4fb34ff094a9a3501399 (patch)
treea18f3825aa1601d21447c0e06e77d9c31ee559f9 /gnu/packages/games.scm
parentc91c53e0b52c2481e24d746aa5884cdbb4aa753b (diff)
downloadguix-3ce3466311953cc5f00a4fb34ff094a9a3501399.tar.gz
gnu: knights: Fix build.
* gnu/packages/games.scm (knights)[source]: Add snippet.
Diffstat (limited to 'gnu/packages/games.scm')
-rw-r--r--gnu/packages/games.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 159a11c35f..c3b277eec1 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1891,7 +1891,13 @@ built-in level editor.")
                                   version "_src.tar.gz"))
               (sha256
                (base32
-                "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
+                "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Fix a missing include for std::map.
+               #~(substitute* "src/shared/impl/lua_func_wrapper.cpp"
+                   (("#include \"misc[.]hpp\"" x)
+                    (string-append "#include <map>\n" x))))))
     (build-system gnu-build-system)
     (arguments
      '(#:make-flags