depot/third_party/nixpkgs/pkgs/development/libraries/nanoflann/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
647 B
Nix

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