2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, unzip, cmake, python }:
|
2011-03-08 09:19:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-08-08 16:18:16 +00:00
|
|
|
name = "flann-1.9.1";
|
2015-03-23 12:36:24 +00:00
|
|
|
|
2017-08-08 16:18:16 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mariusmuja";
|
|
|
|
repo = "flann";
|
|
|
|
rev = "1.9.1";
|
|
|
|
sha256 = "13lg9nazj5s9a41j61vbijy04v6839i67lqd925xmxsbybf36gjc";
|
2011-03-08 09:19:37 +00:00
|
|
|
};
|
|
|
|
|
2018-05-30 16:11:41 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream issue: https://github.com/mariusmuja/flann/issues/369
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/buildroot/buildroot/45a39b3e2ba42b72d19bfcef30db1b8da9ead51a/package/flann/0001-src-cpp-fix-cmake-3.11-build.patch";
|
|
|
|
sha256 = "1gmj06cmnqvwxx649mxaivd35727wj6w7710zbcmmgmsnyfh2js4";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ unzip cmake python ];
|
2011-03-08 09:19:37 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://people.cs.ubc.ca/~mariusm/flann/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2011-03-08 09:19:37 +00:00
|
|
|
description = "Fast approximate nearest neighbor searches in high dimensional spaces";
|
2021-01-21 17:00:13 +00:00
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
2011-03-08 09:19:37 +00:00
|
|
|
};
|
|
|
|
}
|