3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/nanoflann/default.nix

30 lines
647 B
Nix
Raw Normal View History

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