Loading pkgs/development/libraries/science/math/faiss/default.nix +9 −3 Original line number Diff line number Diff line Loading @@ -48,11 +48,18 @@ stdenv.mkDerivation { src = fetchFromGitHub { owner = "facebookresearch"; repo = pname; rev = "v${version}"; repo = "faiss"; rev = "refs/tags/v${version}"; hash = "sha256-P8TynU6jz5NbcWLdI7n4LX5Gdz0Ks72bmOzQ3LGjQCQ="; }; 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 [ Loading @@ -63,7 +70,6 @@ stdenv.mkDerivation { pythonPackages.python pythonPackages.setuptools pythonPackages.pip pythonPackages.wheel ]; buildInputs = Loading pkgs/development/python-modules/faiss/default.nix +0 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,6 @@ packaging, setuptools, pip, wheel, }: buildPythonPackage { Loading @@ -24,7 +23,6 @@ buildPythonPackage { build-system = [ setuptools pip wheel ]; dependencies = [ Loading Loading
pkgs/development/libraries/science/math/faiss/default.nix +9 −3 Original line number Diff line number Diff line Loading @@ -48,11 +48,18 @@ stdenv.mkDerivation { src = fetchFromGitHub { owner = "facebookresearch"; repo = pname; rev = "v${version}"; repo = "faiss"; rev = "refs/tags/v${version}"; hash = "sha256-P8TynU6jz5NbcWLdI7n4LX5Gdz0Ks72bmOzQ3LGjQCQ="; }; 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 [ Loading @@ -63,7 +70,6 @@ stdenv.mkDerivation { pythonPackages.python pythonPackages.setuptools pythonPackages.pip pythonPackages.wheel ]; buildInputs = Loading
pkgs/development/python-modules/faiss/default.nix +0 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,6 @@ packaging, setuptools, pip, wheel, }: buildPythonPackage { Loading @@ -24,7 +23,6 @@ buildPythonPackage { build-system = [ setuptools pip wheel ]; dependencies = [ Loading