From 7294dbfb1712158949c6c057097be3ffbe79e6d8 Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Sun, 28 Jul 2024 01:07:05 +0000 Subject: [PATCH] faiss: reorder attrs in phase order --- .../libraries/science/math/faiss/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/science/math/faiss/default.nix b/pkgs/development/libraries/science/math/faiss/default.nix index 4ffc472a3747..d4e1eaa0bc13 100644 --- a/pkgs/development/libraries/science/math/faiss/default.nix +++ b/pkgs/development/libraries/science/math/faiss/default.nix @@ -62,6 +62,13 @@ stdenv.mkDerivation { --replace-fail '#ifdef SWIGWORDSIZE64' '#if (__SIZEOF_LONG__ == 8)' ''; + nativeBuildInputs = [ cmake ] ++ lib.optionals cudaSupport [ + cudaPackages.cuda_nvcc + addDriverRunpath + ] ++ lib.optionals pythonSupport [ + pythonPackages.python + ]; + buildInputs = [ blas swig @@ -78,13 +85,6 @@ stdenv.mkDerivation { pythonPackages.packaging ]; - nativeBuildInputs = [ cmake ] ++ lib.optionals cudaSupport [ - cudaPackages.cuda_nvcc - addDriverRunpath - ] ++ lib.optionals pythonSupport [ - pythonPackages.python - ]; - passthru.extra-requires.all = [ pythonPackages.numpy ];