From 0fa9ddc3ec650503107f2cbb06d5a4cd063e1218 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Volatier Date: Mon, 12 Apr 2021 15:38:52 +0200 Subject: [PATCH] nongnu: steam: Add steam-nvidia. * nongnu/packages/steam-client.scm (steam-nvidia): new variable. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/steam-client.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/nongnu/packages/steam-client.scm b/nongnu/packages/steam-client.scm index 4f756e2..0c0738d 100644 --- a/nongnu/packages/steam-client.scm +++ b/nongnu/packages/steam-client.scm @@ -56,6 +56,7 @@ #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) + #:use-module (guix transformations) #:use-module (gnu packages audio) #:use-module (gnu packages base) #:use-module (gnu packages bash) @@ -69,6 +70,7 @@ #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages linux) + #:use-module (nongnu packages nvidia) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (nonguix utils)) @@ -519,3 +521,28 @@ application." Valve. This package provides a script for launching Steam in a Guix container which will use the directory @file{$HOME/.local/share/guix-sandbox-home} where all games will be installed.")))) + +(define-public steam-nvidia + (nonguix-container->package + (nonguix-container + (name "steam-nvidia") + (wrap-package steam-client) + (run "/bin/steam-wrapper") + (union64 + (replace-mesa + (fhs-union `(,@steam-client-libs + ,@steam-gameruntime-libs + ,@fhs-min-libs) + #:name "fhs-union-64"))) + (union32 + (replace-mesa + (fhs-union `(,@steam-client-libs + ,@steam-gameruntime-libs + ,@fhs-min-libs) + #:name "fhs-union-32" + #:system "i686-linux"))) + (link-files '("share/applications/steam.desktop")) + (description "Steam is a digital software distribution platform created by +Valve. This package provides a script for launching Steam in a Guix container +which will use the directory @file{$HOME/.local/share/guix-sandbox-home} where +all games will be installed."))))