2011-03-08 09:19:37 +00:00
|
|
|
{stdenv, fetchurl, unzip, cmake, python}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-05-09 10:23:21 +00:00
|
|
|
name = "flann-1.8.4";
|
2015-03-23 12:36:24 +00:00
|
|
|
|
2011-03-08 09:19:37 +00:00
|
|
|
src = fetchurl {
|
2013-05-09 10:23:21 +00:00
|
|
|
url = http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-1.8.4-src.zip;
|
|
|
|
sha256 = "022w8hph7bli5zbpnk3z1qh1c2sl5hm8fw2ccim651ynn0hr7fyz";
|
2011-03-08 09:19:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip cmake python ];
|
|
|
|
|
2015-03-23 12:36:24 +00:00
|
|
|
# patch out examples in Darwin because they do not compile.
|
|
|
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-examples.patch ];
|
|
|
|
|
2011-03-08 09:19:37 +00:00
|
|
|
meta = {
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|