Skip to content

Commit 3fa9f1f

Browse files
committed
python3Packages.jaxlib-bin: fix ofborg evaluation
See https://discourse.nixos.org/t/ofborg-does-not-respect-meta-platforms/27019 for more info.
1 parent 11687d0 commit 3fa9f1f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

  • pkgs/development/python-modules/jaxlib

pkgs/development/python-modules/jaxlib/bin.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ buildPythonPackage rec {
7777
# python version.
7878
disabled = !(pythonVersion == "3.10");
7979

80-
src = if !cudaSupport then cpuSrcs."${stdenv.hostPlatform.system}" else gpuSrc;
80+
# See https://discourse.nixos.org/t/ofborg-does-not-respect-meta-platforms/27019/6.
81+
src =
82+
if !cudaSupport then
83+
(
84+
cpuSrcs."${stdenv.hostPlatform.system}"
85+
or (throw "jaxlib-bin is not supported on ${stdenv.hostPlatform.system}")
86+
) else gpuSrc;
8187

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

0 commit comments

Comments
 (0)