From 05193982cfadb19399acfb53d4865473f0d3b847 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 5 Sep 2024 22:25:09 +0300 Subject: [PATCH] python312.jaxlib-bin: throw on missing gpuSrc Better throw than to do an uncatchable missing attribute error https://www.github.com/NixOS/nixpkgs/pull/338199 --- pkgs/development/python-modules/jaxlib/bin.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/jaxlib/bin.nix b/pkgs/development/python-modules/jaxlib/bin.nix index 0932222e02b89..3104cee90e1c0 100644 --- a/pkgs/development/python-modules/jaxlib/bin.nix +++ b/pkgs/development/python-modules/jaxlib/bin.nix @@ -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.