1 {lib, stdenv, fetchFromGitHub, cmake, eigen, boost}:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "17vxlmszzpm95vvfdxnm98d5p297i10fyblblj6kf0ynq8r2mpsh";
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ eigen boost ];
18 "-DEIGEN_INCLUDE_DIR=${eigen}/include/eigen3"
25 inherit (src.meta) homepage;
26 description = "A fast K Nearest Neighbor library for low-dimensional spaces";
27 license = licenses.bsd3;
28 platforms = platforms.linux;
29 maintainers = with maintainers; [ cryptix ];