Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
35 lines
851 B
Nix
35 lines
851 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
llvmPackages,
|
|
enableAVX ? stdenv.hostPlatform.avxSupport,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "NGT";
|
|
version = "1.12.3-alpha";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yahoojapan";
|
|
repo = "NGT";
|
|
rev = "29c88ff6cd5824d3196986d1f50b834565b6c9dd";
|
|
sha256 = "sha256-nu0MJNpaenOB4+evoSVLKmPIuZXVj1Rm9x53+TfhezY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ llvmPackages.openmp ];
|
|
|
|
NIX_ENFORCE_NO_NATIVE = !enableAVX;
|
|
__AVX2__ = if enableAVX then 1 else 0;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/yahoojapan/NGT";
|
|
description = "Nearest Neighbor Search with Neighborhood Graph and Tree for High-dimensional Data";
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ tomberek ];
|
|
};
|
|
}
|