summary refs log tree commit diff
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-08 09:19:37 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-08 09:19:37 +0000
commita136bd7968b2ce244239e0950f8fa2abab4b9ca4 (patch)
tree58a54568bd0974719a80518a7daeed39e4de96a8
parentd95300f90fd71b094dccf963d717eb25d5637b59 (diff)
downloadnixlib-a136bd7968b2ce244239e0950f8fa2abab4b9ca4.tar
nixlib-a136bd7968b2ce244239e0950f8fa2abab4b9ca4.tar.gz
nixlib-a136bd7968b2ce244239e0950f8fa2abab4b9ca4.tar.bz2
nixlib-a136bd7968b2ce244239e0950f8fa2abab4b9ca4.tar.lz
nixlib-a136bd7968b2ce244239e0950f8fa2abab4b9ca4.tar.xz
nixlib-a136bd7968b2ce244239e0950f8fa2abab4b9ca4.tar.zst
nixlib-a136bd7968b2ce244239e0950f8fa2abab4b9ca4.zip
Adding flann
svn path=/nixpkgs/trunk/; revision=26205
-rw-r--r--pkgs/development/libraries/flann/default.nix18
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/development/libraries/flann/default.nix b/pkgs/development/libraries/flann/default.nix
new file mode 100644
index 000000000000..eaf4ed8836e3
--- /dev/null
+++ b/pkgs/development/libraries/flann/default.nix
@@ -0,0 +1,18 @@
+{stdenv, fetchurl, unzip, cmake, python}:
+
+stdenv.mkDerivation {
+  name = "flann-1.6.8";
+  
+  src = fetchurl {
+    url = http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-1.6.8-src.zip;
+    sha256 = "0ag9k821jy0983gjrfsjnqkl5axklcih0qkpfy72h3643nin0f50";
+  };
+
+  buildInputs = [ unzip cmake python ];
+
+  meta = {
+    homepage = http://people.cs.ubc.ca/~mariusm/flann/;
+    license = "BSD";
+    description = "Fast approximate nearest neighbor searches in high dimensional spaces";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 8363ad7153fb..76eae51572f3 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2984,6 +2984,8 @@ let
     singlePrecision = true;
   };
 
+  flann = callPackage ../development/libraries/flann { };
+
   fltk11 = callPackage ../development/libraries/fltk/fltk11.nix { };
 
   fltk20 = callPackage ../development/libraries/fltk { };