Commit 77667232 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files
parent 97ffcf94
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@

let
  pname = "faiss";
  version = "1.9.0";
  version = "1.10.0";

  inherit (cudaPackages) flags backendStdenv;

@@ -50,16 +50,9 @@ stdenv.mkDerivation {
    owner = "facebookresearch";
    repo = "faiss";
    tag = "v${version}";
    hash = "sha256-P8TynU6jz5NbcWLdI7n4LX5Gdz0Ks72bmOzQ3LGjQCQ=";
    hash = "sha256-Jws6AW0rj6N/MOoaxK6N7KaPkjCYN47Il0xzyKZ7Wc0=";
  };

  postPatch = lib.optionalString pythonSupport ''
    substituteInPlace faiss/python/loader.py \
      --replace-fail \
      "# platform-dependent legacy fallback using numpy.distutils.cpuinfo" \
      "return False"
  '';

  nativeBuildInputs =
    [ cmake ]
    ++ lib.optionals cudaSupport [