1{stdenv, fetchFromGitHub, cmake, eigen, boost, libnabo}:
2
3stdenv.mkDerivation rec {
4 version = "2016-09-11";
5 name = "libpointmatcher-${version}";
6
7 src = fetchFromGitHub {
8 owner = "ethz-asl";
9 repo = "libpointmatcher";
10 rev = "75044815d40ff934fe0bb7e05ed8bbf18c06493b";
11 sha256 = "1s7ilvg3lhr1fq8sxw05ydmbd3kl46496jnyxprhnpgvpmvqsbzl";
12 };
13
14 buildInputs = [cmake eigen boost libnabo];
15
16 enableParallelBuilding = true;
17
18 cmakeFlags = "
19 -DEIGEN_INCLUDE_DIR=${eigen}/include/eigen3
20 ";
21
22 checkPhase = ''
23 export LD_LIBRARY_PATH=$PWD
24 ./utest/utest --path ../examples/data/
25 '';
26 doCheck = true;
27
28 meta = with stdenv.lib; {
29 inherit (src.meta) homepage;
30 description = "An \"Iterative Closest Point\" library for 2-D/3-D mapping in robotic";
31 license = licenses.bsd3;
32 platforms = [ "x86_64-linux" ];
33 maintainers = with maintainers; [ cryptix ];
34 };
35}