Skip to content

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

Open
muggenhor wants to merge 2 commits intonix-community:mainfrom
muggenhor:fix/fwd-nvidia-hash-to-auto
Open

fix: forward nvidiaHash for nixgl.auto derivation too#175
muggenhor wants to merge 2 commits intonix-community:mainfrom
muggenhor:fix/fwd-nvidia-hash-to-auto

Conversation

@muggenhor
Copy link

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.

This allows separating the *use* of nixgl.auto.nixGLDefault from the
location where we pass nvidiaHash to provide a pure instantiation.
Instead of duplicating its definition, because that leaves the
possibility for bugs when these duplicates aren't in sync.
@muggenhor muggenhor force-pushed the fix/fwd-nvidia-hash-to-auto branch from f3f040c to 12f8b90 Compare April 22, 2024 13:14
@mio-19
Copy link

mio-19 commented Feb 20, 2026

nix still builds impure-nvidia-version-file when I just use inputs.nixgl.packages.${pkgs.stdenv.hostPlatform.system}.nixGLDefault

Is it because nix needs to build impure-nvidia-version-file to know the value of nvidiaVersion != null to build the attribute set ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants