anchor.diff:      "-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; {
  
positive.code: 
  mkDerivation rec {
    pname = "cloudcompare";
    version = "2.11.2"; # Remove below patch with the next version bump.
  
    src = fetchFromGitHub {
      owner = "CloudCompare";
      repo = "CloudCompare";
      rev = "v${version}";
      sha256 = "0sb2h08iaf6zrf54sg6ql6wm63q5vq0kpd3gffdm26z8w6j6wv3s";
      # 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
  
negative.code:     LASzip
      libLAS
      pdal
      pcl
      qtbase
      qtsvg
      qttools
  