nixpkgs/pkgs/development/libraries/nanoflann/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
641 B
Nix
Raw Normal View History

{lib, stdenv, fetchFromGitHub, cmake}:
2016-04-19 13:25:41 +00:00
stdenv.mkDerivation rec {
2022-07-29 01:55:12 +00:00
version = "1.4.3";
pname = "nanoflann";
2020-11-11 23:06:00 +00:00
2016-04-19 13:25:41 +00:00
src = fetchFromGitHub {
owner = "jlblancoc";
repo = "nanoflann";
rev = "v${version}";
2022-07-29 01:55:12 +00:00
sha256 = "sha256-NcewcNQcI1CjMNibRF9HCoE2Ibs0/Hy4eOkJ20W3wLo=";
2016-04-19 13:25:41 +00:00
};
nativeBuildInputs = [ cmake ];
2016-04-19 13:25:41 +00:00
cmakeFlags = [
"-DBUILD_EXAMPLES=OFF"
];
2016-04-19 13:25:41 +00:00
doCheck = true;
checkTarget = "test";
meta = {
homepage = "https://github.com/jlblancoc/nanoflann";
license = lib.licenses.bsd2;
2016-04-19 13:25:41 +00:00
description = "Header only C++ library for approximate nearest neighbor search";
platforms = lib.platforms.unix;
2016-04-19 13:25:41 +00:00
};
}