[Nix-dev] OpenGL and Nix

Oliver Charles ollie at ocharles.org.uk
Tue Mar 1 21:56:44 CET 2016


The only way I've had luck with NixOS and OpenGL in the past is by building
anything that needs OpenGL against the same set of nixpkgs that the system
is currently *running* as. Maybe that will help?

On Tue, Mar 1, 2016 at 5:01 PM stewart mackenzie <setori88 at gmail.com> wrote:

> Hi Herwig,
>
> Okay, Herwg, this is what's driving me insane:
>
> https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/mesa/default.nix#L27
>
> Yes, I do not want to link to the stock nix libGL because it has
> STATIC_TLS enabled without which would result in a 10% performance
> hit. So if you're playing hardcore games you want STATIC_TLS.
>
> I on the other hand do not want STATIC_TLS because if I have it
> enabled it throws this error ""SDL error: Failed loading libGL.so.1:
> dlopen: cannot load any more object with static TLS"', hence I need to
> recompile it ensuring no initial-exec (which == STATIC_TLS) is
> enabled.
>
> As I'm running a simple 2D windowing system (conrod) it's more than
> adequate for my needs.
>
> Excellent, much appreciated Herwig.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160301/46d1728d/attachment-0001.html 


More information about the nix-dev mailing list