Commit Graph

14 Commits

Author SHA1 Message Date
John Kehayias
e65677969e
nonguix: binary-build-system: Use add-rpath instead of set-rpath.
Fixes #369.

Previously we were using "patchelf --set-rpath" in binary-build-system for
binaries to find dependencies in Guix.  However, this will override any
previous setting, including if "$ORIGIN" was in RUNPATH.

For Electron applications specifically (like signal-desktop and heroic),
bundled libraries were not found without wrapping with LD_LIBRARY_PATH.  While
this does work, it is not ideal and led to issues in child processes that
inherit LD_LIBRARY_PATH, namely breaking games using Wine/Proton in Heroic.

A possible consequence of this commit is that Guix added paths to RUNPATH are
after what was originally set, perhaps leading to library
loading/compatibility issues.  However, we always try to replace all needed
libraries with Guix packages (just that Electron applications seem to require
bundled libraries in $ORIGIN).

* nonguix/build/binary-build-system.scm (patchelf): Use add-rpath instead of set-rpath.
* nongnu/packages/game-client.scm (heroic-client)[arguments]<#:phases>: Remove
'wrap-where-patchelf-does-not-work phase as it is no longer needed (needed
libraries are found with $ORIGIN preserved in RUNPATH).
* nongnu/packages/messaging.scm (element-desktop, signal-desktop): Likewise.
* nongnu/packages/editors.scm (vscodium): Likewise.
2025-02-03 15:57:36 -05:00
John Kehayias
4aa03a3ccf
nongnu: steam: Use newer gcc for better game compatibility.
Fixes #355.

* nongnu/packages/steam-client.scm (steam-client-libs): Replace gcc with
gcc-14.
2024-12-06 23:11:26 -05:00
John Kehayias
1843650500
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').
2024-08-31 17:54:34 -04:00
dan
ad1b732187
nongnu: heroic-client: Update to 2.14.1.
* nongnu/packages/game-client.scm (heroic-client): Update to 2.14.1.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2024-05-28 21:04:43 +02:00
Hilton Chain
825f6ee783
nongnu: game-client: Preserve environment variables for NVIDIA driver.
* nongnu/packages/nvidia.scm (%nvidia-environment-variable-regexps): New
variable.
* nongnu/packages/game-client.scm (steam-nvidia-container)
(heroic-nvidia-container): Use it.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-03-22 21:08:33 -04:00
Hilton Chain
812250d5b6
nongnu: game-client: Build ld.so.cache for NVIDIA containers.
* nongnu/packages/game-client.scm (steam-nvidia-ld.so.conf)
(steam-nvidia-ld.so.cache): New variables.
(steam-nvidia-container,heroic-nvidia-container): Use them.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-03-22 21:08:32 -04:00
Hilton Chain
40809109fc
nongnu: game-client: Replace mesa with nvda in NVIDIA containers.
* nongnu/packages/game-client.scm (steam-nvidia-container-libs): New variable.
(steam-nvidia-container,heroic-nvidia-container): Use it.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-03-22 21:08:31 -04:00
Hilton Chain
99f3249049
nongnu: game-client: Add steam-container-libs variable.
* nongnu/packages/game-client.scm (steam-container-libs): New variable.
(steam-ld.so.conf,steam-container,heroic-container): Use it.

Signed-off-by: John Kehayias <john.kehayias@protonmail.com>
2024-03-22 21:08:27 -04:00
John Kehayias
a78155eaee
nongnu: heroic-container: Link all of 'share' from heroic-client.
Followup to 5d5d496 to do the same for heroic.

* nongnu/packages/game-client.scm (heroic-container)[link-files]: Link all of
'share' from heroic-client.
2024-02-23 23:21:05 -05:00
John Kehayias
5d5d496e57
nongnu: steam-container: Link all of 'share' from steam-client.
Previously, only the .desktop files from steam-client were shared with
steam-container, and thus only those were available directly when installing
the steam package.  This would miss things like the icons (needed in some
cases for tray support, for example, in waybar).  Update to share all of
'share' to provide a more complete package for the user.

* nongnu/packages/game-client.scm (steam-container)[link-files]: Link all of
'share' from steam-client.
2024-02-23 23:12:58 -05:00
Hilton Chain
9acfbadebf
nongnu: steam-client: Update to 1.0.0.78.
* nongnu/packages/game-client.scm (steam-client): Update to 1.0.0.78.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
2024-01-29 20:20:28 +01:00
John Kehayias
5b8b13c956
nongnu: heroic-client: Update to 2.12.0.
* nongnu/packages/game-client.scm (heroic-client): Update to 2.12.0.
2024-01-08 14:37:21 -05:00
John Kehayias
e823034e40
nongnu: Add heroic.
* nongnu/packages/game-client.scm (heroic-client, heroic-extra-client-libs,
heroic-container, heroic-nvidia-container, heroic, heroic-nvidia): New
variables.
* nonguix/multi-arch-container.scm (make-container-wrapper): Preserve "^SSL_"
for heroic to use curl.
(make-internal-script): Add symlink for "/usr/share/glib-2.0".
2024-01-03 23:02:39 -05:00
John Kehayias
1591c3d1d1
nongnu: Rename (nongnu packages steam-client) module.
* nongnu/packages/steam-client.scm: Rename to ...
* nongnu/packages/game-client.scm: ... this.
2024-01-03 20:10:35 -05:00