5 , enableAVX ? stdenv.hostPlatform.avxSupport
8 stdenv.mkDerivation rec {
10 version = "1.12.3-alpha";
12 src = fetchFromGitHub {
15 rev = "29c88ff6cd5824d3196986d1f50b834565b6c9dd";
16 sha256 = "sha256-nu0MJNpaenOB4+evoSVLKmPIuZXVj1Rm9x53+TfhezY=";
19 nativeBuildInputs = [ cmake ];
20 buildInputs = [ llvmPackages.openmp ];
22 NIX_ENFORCE_NO_NATIVE = ! enableAVX;
23 __AVX2__ = if enableAVX then 1 else 0;
26 homepage = "https://github.com/yahoojapan/NGT";
27 description = "Nearest Neighbor Search with Neighborhood Graph and Tree for High-dimensional Data";
28 platforms = platforms.linux ++ platforms.darwin;
29 license = licenses.asl20;
30 maintainers = with maintainers; [ tomberek ];