2018-05-30 18:11:41 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, unzip, cmake, python }:
|
2011-03-08 10:19:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-08-08 18:18:16 +02:00
|
|
|
name = "flann-1.9.1";
|
2015-03-23 13:36:24 +01:00
|
|
|
|
2017-08-08 18:18:16 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mariusmuja";
|
|
|
|
repo = "flann";
|
|
|
|
rev = "1.9.1";
|
|
|
|
sha256 = "13lg9nazj5s9a41j61vbijy04v6839i67lqd925xmxsbybf36gjc";
|
2011-03-08 10:19:37 +01:00
|
|
|
};
|
|
|
|
|
2018-05-30 18:11:41 +02: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 10:19:37 +01:00
|
|
|
buildInputs = [ unzip cmake python ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://people.cs.ubc.ca/~mariusm/flann/;
|
2014-12-21 00:00:35 +01:00
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2011-03-08 10:19:37 +01:00
|
|
|
description = "Fast approximate nearest neighbor searches in high dimensional spaces";
|
2013-05-09 12:23:21 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
2015-03-23 13:36:24 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2011-03-08 10:19:37 +01:00
|
|
|
};
|
|
|
|
}
|