From adcc088cb97aa88ecd14e57c5e657c2d11a8820f Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 12 Oct 2024 16:08:04 +0100 Subject: [PATCH] faiss: restore `passthru` attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the `python3Packages.faiss.passthru` are broken: $ nix repl -f. nix-repl> python3Packages.faiss.passthru cudaPackages = «error: attribute 'cudaPackages' missing»; cudaSupport = «error: attribute 'cudaSupport' missing»; pythonSupport = «error: attribute 'pythonSupport' missing»; --- pkgs/development/libraries/science/math/faiss/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/science/math/faiss/default.nix b/pkgs/development/libraries/science/math/faiss/default.nix index 689349fb05ac..750735ba6786 100644 --- a/pkgs/development/libraries/science/math/faiss/default.nix +++ b/pkgs/development/libraries/science/math/faiss/default.nix @@ -105,6 +105,10 @@ stdenv.mkDerivation { cp faiss/python/dist/*.whl "$dist/" ''; + passthru = { + inherit cudaSupport cudaPackages pythonSupport; + }; + meta = { description = "Library for efficient similarity search and clustering of dense vectors by Facebook Research"; mainProgram = "demo_ivfpq_indexing";