Subject: Fw: Unable to use GPU in guix shell container with FHS

From: Jacob Hrbek <[email-masked]>
Date: Thu, 10 Nov 2022 10:16:38 +0000

I am unable to send an e-mail to [email-masked] mailing list so submitting as a bug

kreyren@dreamon ~$ guix shell -CF bash coreutils mesa mesa-utils -- glxgears
substitute: updating substitutes from '[https://substitutes.REDACTED](https://substitutes.nonguix.org/)'... 100.0%
0,4 MB will be downloaded
glew-2.1.0 343KiB 4.0MiB/s 00:00 [##################] 100.0%
mesa-utils-8.4.0 29KiB 3.9MiB/s 00:00 [##################] 100.0%
The following derivation will be built:
/gnu/store/r81kp1djl75p3c4bzqfjavnk53klqf2j-profile.drv

applying 4 grafts for mesa-utils-8.4.0 ...
building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
building directory of Info manuals...
building profile with 5 packages...
Error: couldn't open display (null)
^^^^^^^^^^^^^^^^^^^^^

Question: How can i make it to work by showing the glxgears?
-- Jacob "Kreyren" Hrbek

------- Original Message -------
On Friday, November 4th, 2022 at 5:46 AM, Jacob Hrbek <[email-masked]> wrote:

> kreyren@dreamon ~$ guix shell -CF bash coreutils mesa mesa-utils -- glxgears
> substitute: updating substitutes from '[https://substitutes.REDACTED](https://substitutes.nonguix.org)'... 100.0%
> 0,4 MB will be downloaded
> glew-2.1.0 343KiB 4.0MiB/s 00:00 [##################] 100.0%
> mesa-utils-8.4.0 29KiB 3.9MiB/s 00:00 [##################] 100.0%
> The following derivation will be built:
> /gnu/store/r81kp1djl75p3c4bzqfjavnk53klqf2j-profile.drv
>
> applying 4 grafts for mesa-utils-8.4.0 ...
> building CA certificate bundle...
> listing Emacs sub-directories...
> building fonts directory...
> building directory of Info manuals...
> building profile with 5 packages...
> Error: couldn't open display (null)
>
> Question: How can i make it to work by showing the glxgears?
> -- Jacob "Kreyren" Hrbekil.