libGL problem with Wine

Hello,

I recently switched to NixOS and have this issue. When I try to run a 32-bit windows program in wine, I get the following error: Failed to load libGL: /nix/store/6fjwx71x2yy2h7m6jkx6s16nyhww80wx-libGLU-combined/lib/libGL.so.1: undefined symbol: __GLXGL_CORE_FUNCTIONS

I have NixOS 18.03 and nvidia graphics card. Relevant parts of configuration.nix:
hardware.opengl.driSupport32Bit = true;
services.xserver.videoDrivers = [ “nvidia” ];

I’m not sure why, but after reinstalling some packages the issue is now fixed.

libGL is injected impurely, and that sometimes causes problems if two library versions differ too much. (one from libGL closure and another from closure of the executable using libGL)