2020-06-27 23:50:36 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
2020-03-13 16:27:42 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, dxflib
|
|
|
|
, eigen
|
|
|
|
, flann
|
|
|
|
, gdal
|
|
|
|
, LASzip
|
|
|
|
, libLAS
|
|
|
|
, pdal
|
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
|
|
|
, qttools
|
|
|
|
, tbb
|
|
|
|
, xercesc
|
|
|
|
}:
|
|
|
|
|
2020-06-27 23:50:36 +02:00
|
|
|
mkDerivation rec {
|
2020-03-13 16:27:42 +01:00
|
|
|
pname = "cloudcompare";
|
2020-10-27 22:18:44 +01:00
|
|
|
version = "2.11.2";
|
2020-03-13 16:27:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CloudCompare";
|
|
|
|
repo = "CloudCompare";
|
|
|
|
rev = "v${version}";
|
2020-10-27 22:18:44 +01:00
|
|
|
sha256 = "0sb2h08iaf6zrf54sg6ql6wm63q5vq0kpd3gffdm26z8w6j6wv3s";
|
2020-03-13 16:27:42 +01:00
|
|
|
# As of writing includes (https://github.com/CloudCompare/CloudCompare/blob/a1c589c006fc325e8b560c77340809b9c7e7247a/.gitmodules):
|
|
|
|
# * libE57Format
|
|
|
|
# * PoissonRecon
|
2020-10-27 22:18:44 +01:00
|
|
|
# In a future version it will also contain
|
2020-03-13 16:27:42 +01:00
|
|
|
# * CCCoreLib
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
eigen # header-only
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dxflib
|
|
|
|
flann
|
|
|
|
gdal
|
|
|
|
LASzip
|
|
|
|
libLAS
|
|
|
|
pdal
|
|
|
|
qtbase
|
|
|
|
qtsvg
|
|
|
|
qttools
|
|
|
|
tbb
|
|
|
|
xercesc
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2020-10-27 22:18:44 +01:00
|
|
|
# TODO: This will become -DCCCORELIB_USE_TBB=ON in a future version, see
|
2020-03-13 16:27:42 +01:00
|
|
|
# https://github.com/CloudCompare/CloudCompare/commit/f5a0c9fd788da26450f3fa488b2cf0e4a08d255f
|
|
|
|
"-DCOMPILE_CC_CORE_LIB_WITH_TBB=ON"
|
|
|
|
"-DOPTION_USE_DXF_LIB=ON"
|
|
|
|
"-DOPTION_USE_GDAL=ON"
|
|
|
|
"-DOPTION_USE_SHAPE_LIB=ON"
|
|
|
|
|
|
|
|
"-DPLUGIN_GL_QEDL=ON"
|
|
|
|
"-DPLUGIN_GL_QSSAO=ON"
|
|
|
|
"-DPLUGIN_IO_QADDITIONAL=ON"
|
|
|
|
"-DPLUGIN_IO_QCORE=ON"
|
|
|
|
"-DPLUGIN_IO_QCSV_MATRIX=ON"
|
|
|
|
"-DPLUGIN_IO_QE57=ON"
|
|
|
|
"-DPLUGIN_IO_QFBX=OFF" # Autodesk FBX SDK is gratis+proprietary; not packaged in nixpkgs
|
|
|
|
"-DPLUGIN_IO_QPDAL=ON" # required for .las/.laz support
|
|
|
|
"-DPLUGIN_IO_QPHOTOSCAN=ON"
|
|
|
|
"-DPLUGIN_IO_QRDB=OFF" # Riegl rdblib is proprietary; not packaged in nixpkgs
|
|
|
|
];
|
|
|
|
|
2020-06-27 23:50:36 +02:00
|
|
|
meta = with lib; {
|
2020-03-13 16:27:42 +01:00
|
|
|
description = "3D point cloud and mesh processing software";
|
|
|
|
homepage = "https://cloudcompare.org";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ nh2 ];
|
|
|
|
platforms = with platforms; linux; # only tested here; might work on others
|
|
|
|
};
|
|
|
|
}
|