flann: make it build on Darwin (close #6946)
This commit is contained in:
parent
60c123560e
commit
f7e4be5011
@ -10,11 +10,14 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [ unzip cmake python ];
|
buildInputs = [ unzip cmake python ];
|
||||||
|
|
||||||
|
# patch out examples in Darwin because they do not compile.
|
||||||
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-examples.patch ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://people.cs.ubc.ca/~mariusm/flann/;
|
homepage = http://people.cs.ubc.ca/~mariusm/flann/;
|
||||||
license = stdenv.lib.licenses.bsd3;
|
license = stdenv.lib.licenses.bsd3;
|
||||||
description = "Fast approximate nearest neighbor searches in high dimensional spaces";
|
description = "Fast approximate nearest neighbor searches in high dimensional spaces";
|
||||||
maintainers = with stdenv.lib.maintainers; [viric];
|
maintainers = with stdenv.lib.maintainers; [viric];
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
10
pkgs/development/libraries/flann/no-examples.patch
Normal file
10
pkgs/development/libraries/flann/no-examples.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -155,7 +155,7 @@
|
||||||
|
|
||||||
|
add_subdirectory( cmake )
|
||||||
|
add_subdirectory( src )
|
||||||
|
-add_subdirectory( examples )
|
||||||
|
+#add_subdirectory( examples )
|
||||||
|
add_subdirectory( test )
|
||||||
|
add_subdirectory( doc )
|
Loading…
x
Reference in New Issue
Block a user