2021-03-04 15:54:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, cmake
|
|
|
|
, qhull
|
|
|
|
, flann
|
|
|
|
, boost
|
|
|
|
, vtk
|
|
|
|
, eigen
|
|
|
|
, pkg-config
|
|
|
|
, qtbase
|
|
|
|
, libusb1
|
|
|
|
, libpcap
|
|
|
|
, libXt
|
|
|
|
, libpng
|
|
|
|
, Cocoa
|
|
|
|
, AGL
|
|
|
|
, OpenGL
|
2015-08-19 22:31:46 +01:00
|
|
|
}:
|
2013-05-09 11:23:21 +01:00
|
|
|
|
2015-08-19 22:31:46 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-03-04 15:54:15 +00:00
|
|
|
pname = "pcl";
|
|
|
|
version = "1.11.1";
|
2013-05-09 11:23:21 +01:00
|
|
|
|
2016-08-02 18:56:58 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PointCloudLibrary";
|
|
|
|
repo = "pcl";
|
2021-03-04 15:54:15 +00:00
|
|
|
rev = "${pname}-${version}";
|
2020-08-27 05:40:28 +01:00
|
|
|
sha256 = "1cli2rxqsk6nxp36p5mgvvahjz8hm4fb68yi8cf9nw4ygbcvcwb1";
|
2013-05-09 11:23:21 +01:00
|
|
|
};
|
|
|
|
|
2021-03-04 15:54:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook ];
|
|
|
|
buildInputs = [
|
|
|
|
qhull
|
|
|
|
flann
|
|
|
|
boost
|
|
|
|
eigen
|
|
|
|
libusb1
|
|
|
|
libpcap
|
|
|
|
libpng
|
|
|
|
vtk
|
|
|
|
qtbase
|
|
|
|
libXt
|
|
|
|
]
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Cocoa AGL ];
|
2017-10-12 06:40:37 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
cmakeFlags = lib.optionals stdenv.isDarwin [
|
2016-10-06 07:01:46 +01:00
|
|
|
"-DOPENGL_INCLUDE_DIR=${OpenGL}/Library/Frameworks"
|
|
|
|
];
|
2016-04-15 23:13:55 +01:00
|
|
|
|
2013-05-09 11:23:21 +01:00
|
|
|
meta = {
|
2020-10-02 08:58:50 +01:00
|
|
|
homepage = "https://pointclouds.org/";
|
2013-05-09 11:23:21 +01:00
|
|
|
description = "Open project for 2D/3D image and point cloud processing";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2021-03-04 15:54:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ viric ];
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = with lib.platforms; linux ++ darwin;
|
2013-05-09 11:23:21 +01:00
|
|
|
};
|
|
|
|
}
|