python3Packages.torch: revert #196571 on darwin

This commit is contained in:
Weijia Wang 2022-12-31 12:23:09 +01:00
parent 0ad5b19765
commit e736247811

View File

@ -167,7 +167,7 @@ in buildPythonPackage rec {
] ++ lib.optionals cudaSupport [ cudatoolkit_joined ];
buildInputs = [ blas blas.provider pybind11 ]
++ [ linuxHeaders_5_19 ] # TMP: avoid "flexible array member" errors for now
++ lib.optionals stdenv.isLinux [ linuxHeaders_5_19 ] # TMP: avoid "flexible array member" errors for now
++ lib.optionals cudaSupport [ cudnn magma nccl ]
++ lib.optionals stdenv.isLinux [ numactl ]
++ lib.optionals stdenv.isDarwin [ CoreServices libobjc ];