mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
24 lines
761 B
Nix
24 lines
761 B
Nix
{stdenv, fetchurl, unzip, cmake, python}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "flann-1.8.4";
|
|
|
|
src = fetchurl {
|
|
url = http://people.cs.ubc.ca/~mariusm/uploads/FLANN/flann-1.8.4-src.zip;
|
|
sha256 = "022w8hph7bli5zbpnk3z1qh1c2sl5hm8fw2ccim651ynn0hr7fyz";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|