2018-05-30 16:11:41 +00:00
|
|
|
{ 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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2011-03-08 09:19:37 +00:00
|
|
|
buildInputs = [ unzip cmake python ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://people.cs.ubc.ca/~mariusm/flann/";
|
2014-12-20 23:00:35 +00:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2011-03-08 09:19:37 +00:00
|
|
|
description = "Fast approximate nearest neighbor searches in high dimensional spaces";
|
2013-05-09 10:23:21 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2015-03-23 12:36:24 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2011-03-08 09:19:37 +00:00
|
|
|
};
|
|
|
|
}
|