diff --git a/pkgs/by-name/lo/local-ai/package.nix b/pkgs/by-name/lo/local-ai/package.nix index 5e282d638089..373c6df6a10e 100644 --- a/pkgs/by-name/lo/local-ai/package.nix +++ b/pkgs/by-name/lo/local-ai/package.nix @@ -1,4 +1,5 @@ -{ stdenv +{ config +, stdenv , lib , fetchpatch , fetchFromGitHub @@ -21,7 +22,7 @@ # CPU extensions , enable_avx ? true , enable_avx2 ? true -, enable_avx512 ? false +, enable_avx512 ? stdenv.hostPlatform.avx512Support , enable_f16c ? true , enable_fma ? true @@ -31,7 +32,7 @@ , with_openblas ? false , openblas -, with_cublas ? false +, with_cublas ? config.cudaSupport , cudaPackages , with_clblas ? false