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