2019-05-08 22:07:14 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, eigen, boost, libnabo }:
|
2016-09-22 10:15:04 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-08 22:07:14 +02:00
|
|
|
pname = "libpointmatcher";
|
|
|
|
version = "1.3.1";
|
2016-09-22 10:15:04 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ethz-asl";
|
2019-05-08 22:07:14 +02:00
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0lai6sr3a9dj1j4pgjjyp7mx10wixy5wpvbka8nsc2danj6xhdyd";
|
2016-09-22 10:15:04 +02:00
|
|
|
};
|
|
|
|
|
2019-05-08 22:07:14 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ eigen boost libnabo ];
|
2016-09-22 10:15:04 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = "
|
|
|
|
-DEIGEN_INCLUDE_DIR=${eigen}/include/eigen3
|
|
|
|
";
|
|
|
|
|
2019-05-08 22:07:14 +02:00
|
|
|
doCheck = true;
|
2016-09-22 10:15:04 +02:00
|
|
|
checkPhase = ''
|
2019-05-08 22:07:14 +02:00
|
|
|
export LD_LIBRARY_PATH=$PWD
|
|
|
|
./utest/utest --path ../examples/data/
|
2016-09-22 10:15:04 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "An \"Iterative Closest Point\" library for 2-D/3-D mapping in robotic";
|
|
|
|
license = licenses.bsd3;
|
2016-09-30 12:54:09 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2016-09-22 10:15:04 +02:00
|
|
|
maintainers = with maintainers; [ cryptix ];
|
|
|
|
};
|
|
|
|
}
|