2016-04-19 14:25:41 +01:00
|
|
|
{stdenv, fetchFromGitHub, cmake}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 15:56:25 +00:00
|
|
|
version = "1.2.3";
|
2016-04-19 14:25:41 +01:00
|
|
|
name = "nanoflann-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jlblancoc";
|
|
|
|
repo = "nanoflann";
|
|
|
|
rev = "v${version}";
|
2018-02-27 15:56:25 +00:00
|
|
|
sha256 = "1jrh73kjvdv7s7zc1sc3z254i17lpvn77b19wx32nvzsfxs4g44i";
|
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;
|
|
|
|
};
|
|
|
|
}
|