9 stdenv.mkDerivation (finalAttrs: {
13 src = fetchFromGitHub {
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-tYLKpoqI9uqM9JZo2j6n1NqRJzn9gh/6G1BaelQOJYs=";
20 nativeBuildInputs = [ cmake ];
23 (lib.cmakeBool "BUILD_EXAMPLES" buildExamples)
30 homepage = "https://github.com/jlblancoc/nanoflann";
31 description = "Header only C++ library for approximate nearest neighbor search";
33 nanoflann is a C++11 header-only library for building KD-Trees of datasets
34 with different topologies: R2, R3 (point clouds), SO(2) and SO(3) (2D and
35 3D rotation groups). No support for approximate NN is provided. nanoflann
36 does not require compiling or installing. You just need to #include
37 <nanoflann.hpp> in your code.
39 This library is a fork of the flann library by Marius Muja and David
40 G. Lowe, and born as a child project of MRPT. Following the original
41 license terms, nanoflann is distributed under the BSD license. Please, for
42 bugs use the issues button or fork and open a pull request.
44 changelog = "https://github.com/jlblancoc/nanoflann/blob/v${finalAttrs.version}/CHANGELOG.md";
45 license = lib.licenses.bsd2;
46 maintainers = [ lib.maintainers.AndersonTorres ];
47 platforms = lib.platforms.unix;