nix-community / nixGL

A wrapper tool for nix OpenGL application [maintainer=@guibou]
627 stars 76 forks source link

fix: forward nvidiaHash for nixgl.auto derivation too #175

Open muggenhor opened 2 months ago

muggenhor commented 2 months ago

This allows separating the use of nixgl.auto.nixGLDefault from the location where we pass nvidiaHash to provide a pure instantiation.

Without this usage of nixgl.auto.XXX is always impure.

Also reuse nixgl.auto in top when nVidia is forced instead of duplicating its definition, because that leaves the possibility for bugs when these duplicates aren't in sync.