diff options
-rw-r--r-- | gnu/packages/games.scm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index d0b1ee8a77..715008aa8e 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -6929,7 +6929,7 @@ with the \"Stamp\" tool within Tux Paint.") "-DUSE_SYSTEM_PHYSFS=ON") #:phases (modify-phases %standard-phases - (add-after 'unpack 'patch-squirrel-path + (add-after 'unpack 'adapt-squirrel (lambda* (#:key inputs #:allow-other-keys) (let ((squirrel (assoc-ref inputs "squirrel"))) (substitute* "CMakeLists.txt" @@ -6938,7 +6938,10 @@ with the \"Stamp\" tool within Tux Paint.") (("add_dependencies\\(supertux2_lib squirrel\\)") "") (("\\$\\{SQUIRREL_PREFIX\\}/include") (string-append "${SQUIRREL_PREFIX}/include/squirrel")))) - #t))))) + ;; Adapt to changed API between squirrel-3.1 and 3.2. + (substitute* "src/scripting/wrapper.cpp" + (("sq_getinstanceup\\(vm, 1, &data, nullptr" all) + (string-append all ", 0")))))))) (build-system cmake-build-system) (inputs (list boost curl |