Use lib.optionals for better readability

This commit is contained in:
Doron Behar 2023-05-19 21:32:00 +03:00
parent c902f97957
commit 05bf499adf

View File

@ -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";