Skip to content

Commit

Permalink
refactor: reuse nixgl.auto when nVidia is forced
Browse files Browse the repository at this point in the history
Instead of duplicating its definition, because that leaves the
possibility for bugs when these duplicates aren't in sync.
  • Loading branch information
muggenhor committed Apr 22, 2024
1 parent 378c68e commit 12f8b90
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions nixGL.nix
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,5 @@ let
nixGLCommon nixGLIntel;
} // autoNvidia;
};
in top // (if nvidiaVersion != null then
top.nvidiaPackages {
version = nvidiaVersion;
sha256 = nvidiaHash;
}
else
{ })
in top // lib.optionalAttrs (nvidiaVersion != null)
(builtins.removeAttrs top.auto [ "nixGLDefault" ])

0 comments on commit 12f8b90

Please sign in to comment.