From 812250d5b635d7c9d014ad44d0f63c1d2095570a Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Wed, 31 Jan 2024 22:02:14 +0800 Subject: [PATCH] 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 --- nongnu/packages/game-client.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nongnu/packages/game-client.scm b/nongnu/packages/game-client.scm index b02b1a8..0cafb13 100644 --- a/nongnu/packages/game-client.scm +++ b/nongnu/packages/game-client.scm @@ -243,6 +243,17 @@ implementation with gogdl and Amazon Games using Nile.") (define steam-ld.so.cache (ld.so.conf->ld.so.cache steam-ld.so.conf)) +(define steam-nvidia-ld.so.conf + (packages->ld.so.conf + (list (fhs-union steam-nvidia-container-libs + #:name "fhs-union-64") + (fhs-union steam-nvidia-container-libs + #:name "fhs-union-32" + #:system "i686-linux")))) + +(define steam-nvidia-ld.so.cache + (ld.so.conf->ld.so.cache steam-nvidia-ld.so.conf)) + (define-public steam-container (nonguix-container (name "steam") @@ -269,6 +280,8 @@ all games will be installed."))) (name "steam-nvidia") ;; Steam's .desktop files expect a "steam" executable, so provide that. (binary-name "steam") + (ld.so.conf steam-nvidia-ld.so.conf) + (ld.so.cache steam-nvidia-ld.so.cache) (union64 (fhs-union steam-nvidia-container-libs #:name "fhs-union-64")) @@ -314,6 +327,8 @@ installed."))) (nonguix-container (inherit heroic-container) (name "heroic-nvidia") + (ld.so.conf steam-nvidia-ld.so.conf) + (ld.so.cache steam-nvidia-ld.so.cache) (union64 (fhs-union `(,@heroic-extra-client-libs ,@steam-nvidia-container-libs)