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