depot/third_party/nixpkgs/pkgs/development/libraries/libpointmatcher/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

31 lines
825 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, eigen, boost, libnabo, yaml-cpp }:
stdenv.mkDerivation rec {
pname = "libpointmatcher";
version = "1.4.3";
src = fetchFromGitHub {
owner = "norlab-ulaval";
repo = "libpointmatcher";
rev = version;
hash = "sha256-ewsU3aCFPeem1pJpqKaceMhL7SwTYOaYlcwOfMxwkSs=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ eigen boost libnabo yaml-cpp ];
cmakeFlags = [
(lib.cmakeFeature "EIGEN_INCLUDE_DIR" "${eigen}/include/eigen3")
(lib.cmakeBool "BUILD_TESTS" doCheck)
];
doCheck = true;
meta = with lib; {
inherit (src.meta) homepage;
description = "\"Iterative Closest Point\" library for 2-D/3-D mapping in robotic";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ cryptix ];
};
}