@@ -2,7 +2,7 @@
22
33stdenv.mkDerivation {
44 name = "flann-1.8.4";
5−
5+
66 src = fetchurl {
77 url = http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-1.8.4-src.zip;
88 sha256 = "022w8hph7bli5zbpnk3z1qh1c2sl5hm8fw2ccim651ynn0hr7fyz";
@@ -10,11 +10,14 @@ stdenv.mkDerivation {
1010
1111 buildInputs = [ unzip cmake python ];
1212
13+ # patch out examples in Darwin because they do not compile.
14+ patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-examples.patch ];
15+
1316 meta = {
1417 homepage = http://people.cs.ubc.ca/~mariusm/flann/;
1518 license = stdenv.lib.licenses.bsd3;
1619 description = "Fast approximate nearest neighbor searches in high dimensional spaces";
1720 maintainers = with stdenv.lib.maintainers; [viric];
18− platforms = with stdenv.lib.platforms; linux;
21+ platforms = with stdenv.lib.platforms; linux ++ darwin;
1922 };
2023}