3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/flann/default.nix
2017-06-02 15:20:10 +02:00

26 lines
764 B
Nix

{ stdenv, fetchFromGitHub, unzip, cmake, python }:
stdenv.mkDerivation {
name = "flann-1.9.1";
src = fetchFromGitHub {
owner = "mariusmuja";
repo = "flann";
rev = "1.9.1";
sha256 = "13lg9nazj5s9a41j61vbijy04v6839i67lqd925xmxsbybf36gjc";
};
buildInputs = [ unzip cmake python ];
# patch out examples in Darwin because they do not compile.
patches = stdenv.lib.optionals stdenv.isDarwin [ ./no-examples.patch ];
meta = {
homepage = http://people.cs.ubc.ca/~mariusm/flann/;
license = stdenv.lib.licenses.bsd3;
description = "Fast approximate nearest neighbor searches in high dimensional spaces";
maintainers = with stdenv.lib.maintainers; [viric];
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}