mirror of
https://github.com/polygon/gpt4all-nix.git
synced 2024-09-11 13:45:59 +03:00
Use lib.optionals for better readability
This commit is contained in:
parent
c902f97957
commit
05bf499adf
@ -31,7 +31,7 @@ stdenv.mkDerivation {
|
||||
qtsvg
|
||||
];
|
||||
|
||||
cmakeFlags = if withAvx2 then [] else [ "-DGPT4ALL_AVX_ONLY=ON" ];
|
||||
cmakeFlags = lib.optionals withAvx2 [ "-DGPT4ALL_AVX_ONLY=ON" ];
|
||||
|
||||
setSourceRoot = "sourceRoot=`pwd`/source/gpt4all-chat";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user