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 # #<procedur?> ?)

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]<phases>: 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').
This commit is contained in:
John Kehayias 2024-08-31 17:54:34 -04:00
parent 0f2e067ad0
commit 1843650500
No known key found for this signature in database
GPG key ID: 499097AE5EA815D9

View file

@ -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"))