faiss: prefer optionals over optional

This commit is contained in:
Someone Serge
2023-04-01 05:48:32 +03:00
parent 2e5cb6f4d6
commit 79046b7a5e
@@ -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