nongnu: heroic-client: Update wrapper-plan to include binary path.

* nongnu/packages/game-client.scm (heroic-client)[arguments]<#:wrapper-plan>:
Add the path for heroic to its wrapper-plan.
<#:phases>: Remove wrap-where-patchelf-does-not-work phase as it is no longer
needed.
This commit is contained in:
John Kehayias 2025-02-04 21:46:49 -05:00
parent 26778f221b
commit 1be22dfea3
No known key found for this signature in database
GPG Key ID: 499097AE5EA815D9

View File

@ -72,7 +72,7 @@
(arguments (arguments
(list #:validate-runpath? #f ; TODO: fails on wrapped binary and included other files (list #:validate-runpath? #f ; TODO: fails on wrapped binary and included other files
#:wrapper-plan #:wrapper-plan
#~'("lib/Heroic/heroic" #~'(("lib/Heroic/heroic" (("out" "/lib/Heroic")))
"lib/Heroic/libEGL.so" "lib/Heroic/libEGL.so"
"lib/Heroic/libGLESv2.so" "lib/Heroic/libGLESv2.so"
"lib/Heroic/libvk_swiftshader.so" "lib/Heroic/libvk_swiftshader.so"
@ -97,15 +97,7 @@
(lambda _ (lambda _
(mkdir-p (string-append #$output "/bin")) (mkdir-p (string-append #$output "/bin"))
(symlink (string-append #$output "/lib/Heroic/heroic") (symlink (string-append #$output "/lib/Heroic/heroic")
(string-append #$output "/bin/heroic")))) (string-append #$output "/bin/heroic")))))))
(add-after 'install-wrapper 'wrap-where-patchelf-does-not-work
(lambda _
(wrap-program (string-append #$output "/lib/Heroic/heroic")
`("LD_LIBRARY_PATH" ":" prefix
(,(string-join
(list
(string-append #$output "/lib/Heroic"))
":")))))))))
(home-page "https://heroicgameslauncher.com") (home-page "https://heroicgameslauncher.com")
(synopsis "A Native GOG, Amazon and Epic Games Launcher") (synopsis "A Native GOG, Amazon and Epic Games Launcher")
(description "Heroic is an Open Source Game Launcher. Right now it supports launching (description "Heroic is an Open Source Game Launcher. Right now it supports launching