depot/third_party/nixpkgs/pkgs/development/libraries/nanoflann/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

29 lines
641 B
Nix

{lib, stdenv, fetchFromGitHub, cmake}:
stdenv.mkDerivation rec {
version = "1.4.2";
pname = "nanoflann";
src = fetchFromGitHub {
owner = "jlblancoc";
repo = "nanoflann";
rev = "v${version}";
sha256 = "sha256-znIX1S0mfOqLYPIcyVziUM1asBjENPEAdafLud1CfFI=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DBUILD_EXAMPLES=OFF"
];
doCheck = true;
checkTarget = "test";
meta = {
homepage = "https://github.com/jlblancoc/nanoflann";
license = lib.licenses.bsd2;
description = "Header only C++ library for approximate nearest neighbor search";
platforms = lib.platforms.unix;
};
}