mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
30 lines
641 B
Nix
30 lines
641 B
Nix
{lib, stdenv, fetchFromGitHub, cmake}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.4.3";
|
|
pname = "nanoflann";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jlblancoc";
|
|
repo = "nanoflann";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-NcewcNQcI1CjMNibRF9HCoE2Ibs0/Hy4eOkJ20W3wLo=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|