depot/third_party/nixpkgs/pkgs/development/libraries/nanoflann/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

48 lines
1.5 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, buildExamples ? false
}:
stdenv.mkDerivation (finalAttrs: {
version = "1.6.0";
pname = "nanoflann";
src = fetchFromGitHub {
owner = "jlblancoc";
repo = "nanoflann";
rev = "v${finalAttrs.version}";
hash = "sha256-oAy9/PjYTtnhD+zrMGgYPhjHwE5O7nB0j+1obbAymq8=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "BUILD_EXAMPLES" buildExamples)
];
doCheck = true;
checkTarget = "test";
meta = {
homepage = "https://github.com/jlblancoc/nanoflann";
description = "Header only C++ library for approximate nearest neighbor search";
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 ];
platforms = lib.platforms.unix;
};
})