diff --git a/pkgs/development/libraries/science/math/faiss/default.nix b/pkgs/development/libraries/science/math/faiss/default.nix index 7ea2a913307e..48d22bf178ed 100644 --- a/pkgs/development/libraries/science/math/faiss/default.nix +++ b/pkgs/development/libraries/science/math/faiss/default.nix @@ -16,8 +16,8 @@ , addOpenGLRunpath , optLevel ? let optLevels = - lib.optional stdenv.hostPlatform.avx2Support "avx2" - ++ lib.optional stdenv.hostPlatform.sse4_1Support "sse4" + lib.optionals stdenv.hostPlatform.avx2Support [ "avx2" ] + ++ lib.optionals stdenv.hostPlatform.sse4_1Support [ "sse4" ] ++ [ "generic" ]; in # Choose the maximum available optimization level