2016-04-19 13:25:41 +00:00
|
|
|
{stdenv, fetchFromGitHub, cmake}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-30 16:42:17 +00:00
|
|
|
version = "1.3.1";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "nanoflann";
|
2016-04-19 13:25:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jlblancoc";
|
|
|
|
repo = "nanoflann";
|
|
|
|
rev = "v${version}";
|
2019-11-30 16:42:17 +00:00
|
|
|
sha256 = "07vi3yn5y9zk9acdbxy954ghdml15wnyqfizzqwsw8zmc9bf30ih";
|
2016-04-19 13:25:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
2019-11-30 16:42:17 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
|
|
];
|
|
|
|
|
2016-04-19 13:25:41 +00: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 13:25:41 +00:00
|
|
|
description = "Header only C++ library for approximate nearest neighbor search";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|