depot/third_party/nixpkgs/pkgs/development/libraries/nanoflann/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

29 lines
642 B
Nix

{lib, stdenv, fetchFromGitHub, cmake}:
stdenv.mkDerivation rec {
version = "1.3.2";
pname = "nanoflann";
src = fetchFromGitHub {
owner = "jlblancoc";
repo = "nanoflann";
rev = "v${version}";
sha256 = "0lq1zqwjvk8wv15hd7aw57jsqbvv45cwb8ngdh1d2iyw5rvnbhsn";
};
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;
};
}