2016-04-19 14:25:41 +01:00
|
|
|
{stdenv, fetchFromGitHub, cmake}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-11-11 17:29:18 +00:00
|
|
|
version = "1.3.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nanoflann";
|
2020-11-11 23:06:00 +00:00
|
|
|
|
2016-04-19 14:25:41 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jlblancoc";
|
|
|
|
repo = "nanoflann";
|
|
|
|
rev = "v${version}";
|
2020-11-11 17:29:18 +00:00
|
|
|
sha256 = "0lq1zqwjvk8wv15hd7aw57jsqbvv45cwb8ngdh1d2iyw5rvnbhsn";
|
2016-04-19 14:25:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
2019-11-30 16:42:17 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
|
|
];
|
|
|
|
|
2016-04-19 14:25:41 +01:00
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = {
|
2019-11-30 16:42:17 +00:00
|
|
|
homepage = "https://github.com/jlblancoc/nanoflann";
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2016-04-19 14:25:41 +01:00
|
|
|
description = "Header only C++ library for approximate nearest neighbor search";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|