faiss: 1.7.4 -> 1.8.0

(cherry picked from commit 39dc5d0d76)
This commit is contained in:
Ben Darwin
2024-07-27 14:27:06 +00:00
committed by Someone Serge
parent 1e935b4be1
commit 9e6bb0d031
@@ -1,7 +1,6 @@
{ lib
, config
, fetchFromGitHub
, fetchpatch2
, stdenv
, cmake
, cudaPackages ? { }
@@ -26,7 +25,7 @@
let
pname = "faiss";
version = "1.7.4";
version = "1.8.0";
inherit (cudaPackages) flags backendStdenv;
@@ -51,18 +50,9 @@ stdenv.mkDerivation {
owner = "facebookresearch";
repo = pname;
rev = "v${version}";
hash = "sha256-WSce9X6sLZmGM5F0ZkK54VqpIy8u1VB0e9/l78co29M=";
hash = "sha256-nS8nhkNGGb2oAJKfr/MIAZjAwMxBGbNd16/CkEtv67I=";
};
patches = [
(fetchpatch2 {
# Replace distutils with packaging for version checks
url = "https://github.com/facebookresearch/faiss/commit/c540e762ca0ecf8f43da0bfc215da148c5cf420e.patch";
includes = [ "faiss/python/loader.py" ];
hash = "sha256-yMHAXo0+oDXknSpv1fxUgil3R/WG1+vTLyxvwVR3VtE=";
})
];
postPatch = ''
# Remove the following substituteInPlace when updating
# to a release that contains change from PR