2016-04-19 14:25:41 +01:00
|
|
|
{stdenv, fetchFromGitHub, cmake}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-10-14 16:09:47 +01:00
|
|
|
version = "1.3.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "nanoflann";
|
2016-04-19 14:25:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jlblancoc";
|
|
|
|
repo = "nanoflann";
|
|
|
|
rev = "v${version}";
|
2018-10-14 16:09:47 +01:00
|
|
|
sha256 = "1bwdmrz1qygp9qy2nzrp1axa1i4nvm0ljkn6mnhlcvbfsyvhzigv";
|
2016-04-19 14:25:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/jlblancoc/nanoflann;
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
description = "Header only C++ library for approximate nearest neighbor search";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|