From 18436505000045308a1ba027f9ff46699710c5ca Mon Sep 17 00:00:00 2001 From: John Kehayias Date: Sat, 31 Aug 2024 17:54:34 -0400 Subject: [PATCH] nongnu: steam-client: Fix build. It is unclear why steam failed to build post-core-updates merge in Guix, with errors like: In guix/build/utils.scm: 761:4 0 (alist-cons-after patch-dot-desktop-files # # ?) guix/build/utils.scm:761:4: In procedure alist-cons-after: Throw to key `match-error' with args `("match" "no matching pattern" ())'. The fix is to reorder and rename some phases which apparently don't exist. * nongnu/packages/game-client.scm (steam-client)[arguments]: Reorder the deletion of 'patch-dot-desktop-files to after 'patch-desktop-file (which tried to add after this now deleted phases). Change the 'post-install phase to add after 'install ('install-binaries doesn't exist'). --- nongnu/packages/game-client.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nongnu/packages/game-client.scm b/nongnu/packages/game-client.scm index 3b04b9c..f1cb28d 100644 --- a/nongnu/packages/game-client.scm +++ b/nongnu/packages/game-client.scm @@ -141,7 +141,6 @@ implementation with gogdl and Amazon Games using Nile.") (substitute* "Makefile" (("-fns ") "-fns $(DESTDIR)")))) - (delete 'patch-dot-desktop-files) (add-after 'unpack 'patch-startscript (lambda _ (substitute* "bin_steam.sh" @@ -157,8 +156,9 @@ implementation with gogdl and Amazon Games using Nile.") (substitute* (string-append path "steam-asound32.desktop") (("Exec=steam %U") "Exec=steam %U -- --asound32") (("Name=Steam") "Name=Steam (32-bit ALSA)"))))) + (delete 'patch-dot-desktop-files) ;; Steamdeps installs missing packages, which doesn't work with Guix. - (add-after 'install-binaries 'post-install + (add-after 'install 'post-install (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref %outputs "out"))) (delete-file (string-append out "/lib/steam/bin_steamdeps.py"))