btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / li / libpointmatcher / package.nix
blob57c629783aa6fee17d1b99fd230b3f32a9513154
1 { lib, stdenv, fetchFromGitHub, cmake, eigen, boost, libnabo, yaml-cpp }:
3 stdenv.mkDerivation rec {
4   pname = "libpointmatcher";
5   version = "1.4.3";
7   src = fetchFromGitHub {
8     owner = "norlab-ulaval";
9     repo = "libpointmatcher";
10     rev = version;
11     hash = "sha256-ewsU3aCFPeem1pJpqKaceMhL7SwTYOaYlcwOfMxwkSs=";
12   };
14   nativeBuildInputs = [ cmake ];
15   buildInputs = [ eigen boost libnabo yaml-cpp ];
17   cmakeFlags = [
18     (lib.cmakeFeature "EIGEN_INCLUDE_DIR" "${eigen}/include/eigen3")
19     (lib.cmakeBool "BUILD_TESTS" doCheck)
20   ];
22   doCheck = true;
24   meta = with lib; {
25     inherit (src.meta) homepage;
26     description = "\"Iterative Closest Point\" library for 2-D/3-D mapping in robotic";
27     license = licenses.bsd3;
28     platforms = platforms.linux;
29     maintainers = with maintainers; [ cryptix ];
30   };