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