Skip to content

Commit 378c68e

Browse files
committed
fix: forward nvidiaHash for nixgl.auto derivation too
This allows separating the *use* of nixgl.auto.nixGLDefault from the location where we pass nvidiaHash to provide a pure instantiation.
1 parent 310f8e4 commit 378c68e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nixGL.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,10 @@ let
236236
versionMatch = builtins.match ".*Module ([0-9.]+) .*" data;
237237
in if versionMatch != null then builtins.head versionMatch else null;
238238

239-
autoNvidia = nvidiaPackages {version = nvidiaVersionAuto; };
239+
autoNvidia = nvidiaPackages {
240+
version = nvidiaVersionAuto;
241+
sha256 = nvidiaHash;
242+
};
240243
in rec {
241244
# The output derivation contains nixGL which point either to
242245
# nixGLNvidia or nixGLIntel using an heuristic.

0 commit comments

Comments
 (0)