Skip to content

Commit

Permalink
python312.jaxlib-bin: throw on missing gpuSrc
Browse files Browse the repository at this point in the history
Better throw than to do an uncatchable missing attribute error

https://www.github.com/NixOS/nixpkgs/pull/338199
  • Loading branch information
Artturin committed Sep 5, 2024
1 parent 3c82d2b commit 0519398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/jaxlib/bin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ buildPythonPackage {
or (throw "jaxlib-bin is not supported on ${stdenv.hostPlatform.system}")
)
else
gpuSrcs."${gpuSrcVersionString}";
gpuSrcs."${gpuSrcVersionString}" or (throw "jaxlib-bin: No gpuSrc for ${gpuSrcVersionString}");

# Prebuilt wheels are dynamically linked against things that nix can't find.
# Run `autoPatchelfHook` to automagically fix them.
Expand Down

0 comments on commit 0519398

Please sign in to comment.