Subject: [PATCH 1/3] gnu: endless-sky: Update to 0.9.14.

From: Timotej Lazar <[email-masked]>
Date: Wed, 4 Aug 2021 12:49:30 +0200

* gnu/packages/games.scm (endless-sky): Update to 0.9.14.
[arguments]: Add 'use-gcc-ar phase to support LTO used by the new version.
---
 gnu/packages/games.scm | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index ad48c49566..792ff64a07 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -8351,7 +8351,7 @@ your score gets higher, you level up and the blocks fall faster.")
 (define-public endless-sky
   (package
     (name "endless-sky")
-    (version "0.9.12")
+    (version "0.9.14")
     (source
       (origin
         (method git-fetch)
@@ -8360,7 +8360,7 @@ your score gets higher, you level up and the blocks fall faster.")
                (commit (string-append "v" version))))
         (file-name (git-file-name name version))
         (sha256
-         (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
+         (base32 "12iganf8dxiyrjznnabsarxjsr0h717j3k4mz15p0k67wxyahhmf"))))
     (build-system scons-build-system)
     (arguments
      `(#:scons ,scons-python2
@@ -8382,7 +8382,10 @@ your score gets higher, you level up and the blocks fall faster.")
                 "Environment(ENV = os.environ)")
                ;; Install into %out/bin
                (("games\"") "bin\""))
-             #t)))))
+             #t))
+         (add-before 'build 'use-gcc-ar
+           ;; Use gcc-ar to support LTO.
+           (lambda _ (setenv "AR" "gcc-ar") #t)))))
     (inputs
      `(("glew" ,glew)
        ("libjpeg" ,libjpeg-turbo)
-- 
2.32.0