summary refs log tree commit diff
path: root/pkgs/applications/graphics/cloudcompare
diff options
context:
space:
mode:
authorrowanG077 <goemansrowan@gmail.com>2021-10-13 22:55:28 +0200
committerRaphael Megzari <raphael@megzari.com>2021-10-26 09:58:06 +0900
commitdcf4f166692721ee796d5c0208e4652c83b22ccc (patch)
treee13fc778f4b0bcddb21367ffffce23cc18658e71 /pkgs/applications/graphics/cloudcompare
parent05fd40540589f92c9f0ce6d8100ce2a838c44d14 (diff)
downloadnixpkgs-dcf4f166692721ee796d5c0208e4652c83b22ccc.tar
nixpkgs-dcf4f166692721ee796d5c0208e4652c83b22ccc.tar.gz
nixpkgs-dcf4f166692721ee796d5c0208e4652c83b22ccc.tar.bz2
nixpkgs-dcf4f166692721ee796d5c0208e4652c83b22ccc.tar.lz
nixpkgs-dcf4f166692721ee796d5c0208e4652c83b22ccc.tar.xz
nixpkgs-dcf4f166692721ee796d5c0208e4652c83b22ccc.tar.zst
nixpkgs-dcf4f166692721ee796d5c0208e4652c83b22ccc.zip
cloudcompare: 2.11.2 -> unstable-2021-10-14
Released version doesn't work with packaged PCL
because it's too new. Considering that a release
is a year ago it's unreasonable to wait for it.
Diffstat (limited to 'pkgs/applications/graphics/cloudcompare')
-rw-r--r--pkgs/applications/graphics/cloudcompare/default.nix28
1 files changed, 12 insertions, 16 deletions
diff --git a/pkgs/applications/graphics/cloudcompare/default.nix b/pkgs/applications/graphics/cloudcompare/default.nix
index 9fbe390f5d8..c120ece8cb4 100644
--- a/pkgs/applications/graphics/cloudcompare/default.nix
+++ b/pkgs/applications/graphics/cloudcompare/default.nix
@@ -10,6 +10,7 @@
 , LASzip
 , libLAS
 , pdal
+, pcl
 , qtbase
 , qtsvg
 , qttools
@@ -19,30 +20,23 @@
 
 mkDerivation rec {
   pname = "cloudcompare";
-  version = "2.11.2"; # Remove below patch with the next version bump.
+  # Released version doesn't work with packaged PCL
+  # because it's too new. Considering that a release
+  # is a year ago it's unreasonable to wait for it.
+  version = "unstable-2021-10-14";
 
   src = fetchFromGitHub {
     owner = "CloudCompare";
     repo = "CloudCompare";
-    rev = "v${version}";
-    sha256 = "0sb2h08iaf6zrf54sg6ql6wm63q5vq0kpd3gffdm26z8w6j6wv3s";
+    rev = "1f65ba63756e23291ae91ff52d04da468ade8249";
+    sha256 = "x1bDjFjXIl3r+yo1soWvRB+4KGP50/WBoGlrH013JQo=";
     # As of writing includes (https://github.com/CloudCompare/CloudCompare/blob/a1c589c006fc325e8b560c77340809b9c7e7247a/.gitmodules):
     # * libE57Format
     # * PoissonRecon
-    # In a future version it will also contain
     # * CCCoreLib
     fetchSubmodules = true;
   };
 
-  patches = [
-    # TODO: Remove with next CloudCompare release (see https://github.com/CloudCompare/CloudCompare/pull/1478)
-    (fetchpatch {
-      name = "CloudCompare-fix-for-PDAL-2.3.0.patch";
-      url = "https://github.com/CloudCompare/CloudCompare/commit/f3038dcdeb0491c4a653c2ee6fb017326eb676a3.patch";
-      sha256 = "0ca5ry987mcgsdawz5yd4xhbsdb5k44qws30srxymzx2djvamwli";
-    })
-  ];
-
   nativeBuildInputs = [
     cmake
     eigen # header-only
@@ -55,6 +49,7 @@ mkDerivation rec {
     LASzip
     libLAS
     pdal
+    pcl
     qtbase
     qtsvg
     qttools
@@ -63,15 +58,14 @@ mkDerivation rec {
   ];
 
   cmakeFlags = [
-    # TODO: This will become -DCCCORELIB_USE_TBB=ON in a future version, see
-    #       https://github.com/CloudCompare/CloudCompare/commit/f5a0c9fd788da26450f3fa488b2cf0e4a08d255f
-    "-DCOMPILE_CC_CORE_LIB_WITH_TBB=ON"
+    "-DCCCORELIB_USE_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"
@@ -80,6 +74,8 @@ mkDerivation rec {
     "-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
+
+    "-DPLUGIN_STANDARD_QPCL=ON" # Adds PCD import and export support
   ];
 
   meta = with lib; {