nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at litex 29 lines 641 B view raw
1{lib, stdenv, fetchFromGitHub, cmake}: 2 3stdenv.mkDerivation rec { 4 version = "1.4.3"; 5 pname = "nanoflann"; 6 7 src = fetchFromGitHub { 8 owner = "jlblancoc"; 9 repo = "nanoflann"; 10 rev = "v${version}"; 11 sha256 = "sha256-NcewcNQcI1CjMNibRF9HCoE2Ibs0/Hy4eOkJ20W3wLo="; 12 }; 13 14 nativeBuildInputs = [ cmake ]; 15 16 cmakeFlags = [ 17 "-DBUILD_EXAMPLES=OFF" 18 ]; 19 20 doCheck = true; 21 checkTarget = "test"; 22 23 meta = { 24 homepage = "https://github.com/jlblancoc/nanoflann"; 25 license = lib.licenses.bsd2; 26 description = "Header only C++ library for approximate nearest neighbor search"; 27 platforms = lib.platforms.unix; 28 }; 29}