[Nix-dev] 32-bit DRI drivers on 64-bit NixOS

Arseniy Alekseyev arseniy.alekseyev at gmail.com
Mon Sep 9 12:25:17 CEST 2013


Hi!

I have a problem with /run/opengl-driver-32 being a symbolic link to
/run/opengl-driver on 64-bit machines.

The directory contains DRI drivers that are being dynamically linked
against 32-bit programs. Obviously the 64-bit libraries contained in
/run/opengl-driver fail to link with those.

Here is the observed behaviour:

$ $(nix-build -A pkgs.glxinfo "<nixpkgs>" --argstr system
i686-linux)/bin/glxinfo | grep direct
direct rendering: No

# rm  -f /run/opengl-driver-32
# nix-build "<nixpkgs>" -A pkgs.mesa_drivers -o /run/opengl-driver-32
--argstr system i686-linux
# mv /run/opengl-driver-32-drivers /run/opengl-driver-32

$ $(nix-build -A pkgs.glxinfo "<nixpkgs>" --argstr system
i686-linux)/bin/glxinfo | grep direct
direct rendering: Yes

I'd prefer to have "direct rendering: Yes" in both cases.

Does anyone have any idea about why the incorrect symlink gets created
at all and how to fix it?

Thank you,
Arseniy


More information about the nix-dev mailing list