2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, buildExamples ? false
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "nanoflann";
|
2020-11-12 09:05:59 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jlblancoc";
|
|
|
|
repo = "nanoflann";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-likFHzaP/1yYfr6+rDWM2+YEKOk5G5P8UFC3xb2bEOo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
2024-01-25 14:12:00 +00:00
|
|
|
(lib.cmakeBool "BUILD_EXAMPLES" buildExamples)
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/jlblancoc/nanoflann";
|
|
|
|
description = "Header only C++ library for approximate nearest neighbor search";
|
2023-07-15 17:15:38 +00:00
|
|
|
longDescription = ''
|
|
|
|
nanoflann is a C++11 header-only library for building KD-Trees of datasets
|
|
|
|
with different topologies: R2, R3 (point clouds), SO(2) and SO(3) (2D and
|
|
|
|
3D rotation groups). No support for approximate NN is provided. nanoflann
|
|
|
|
does not require compiling or installing. You just need to #include
|
|
|
|
<nanoflann.hpp> in your code.
|
|
|
|
|
|
|
|
This library is a fork of the flann library by Marius Muja and David
|
|
|
|
G. Lowe, and born as a child project of MRPT. Following the original
|
|
|
|
license terms, nanoflann is distributed under the BSD license. Please, for
|
|
|
|
bugs use the issues button or fork and open a pull request.
|
|
|
|
'';
|
|
|
|
changelog = "https://github.com/jlblancoc/nanoflann/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = [ lib.maintainers.AndersonTorres ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|