diff --git a/pkgs/development/libraries/science/math/faiss/default.nix b/pkgs/development/libraries/science/math/faiss/default.nix index 816e4d8868f6..5ef390b2e1ff 100644 --- a/pkgs/development/libraries/science/math/faiss/default.nix +++ b/pkgs/development/libraries/science/math/faiss/default.nix @@ -11,7 +11,7 @@ llvmPackages, blas, swig, - addDriverRunpath, + autoAddDriverRunpath, optLevel ? let optLevels = @@ -72,7 +72,7 @@ stdenv.mkDerivation { [ cmake ] ++ lib.optionals cudaSupport [ cudaPackages.cuda_nvcc - addDriverRunpath + autoAddDriverRunpath ] ++ lib.optionals pythonSupport [ pythonPackages.python @@ -127,11 +127,6 @@ stdenv.mkDerivation { cp faiss/python/dist/*.whl "$dist/" ''; - postFixup = lib.optionalString (pythonSupport && cudaSupport) '' - addDriverRunpath $out/${pythonPackages.python.sitePackages}/faiss/*.so - addDriverRunpath $demos/bin/* - ''; - passthru = { inherit cudaSupport cudaPackages pythonSupport;