diff --git a/pkgs/all-packages.nix b/pkgs/all-packages.nix index 0e93184..a2a31c4 100644 --- a/pkgs/all-packages.nix +++ b/pkgs/all-packages.nix @@ -9,6 +9,8 @@ self: super: pkgs: with pkgs; { boost = boost162; }; + cloudcompare = libsForQt5.callPackage ./cloudcompare.nix { }; + cryptominisat = callPackage ./cryptominisat.nix { }; #firedrake = callPackage ./firedrake { }; diff --git a/pkgs/cloudcompare.nix b/pkgs/cloudcompare.nix new file mode 100644 index 0000000..61d87e9 --- /dev/null +++ b/pkgs/cloudcompare.nix @@ -0,0 +1,42 @@ +{ stdenv, fetchFromGitHub, cmake +, boost15x, eigen, dxflib, gdal, flann, libLAS, LASzip +, qtbase }: + +stdenv.mkDerivation rec { + version = "2.9.1"; + name = "CloudCompare-${version}"; + + src = fetchFromGitHub { + owner = "CloudCompare"; + repo = "CloudCompare"; + rev = "v${version}"; + sha256 = "1qlylr7l8bnji3v4imj2rssy23gqhxrrig950if5myh6yjk63prs"; + }; + + buildInputs = [ + cmake + boost15x + eigen + dxflib + gdal + flann + libLAS + LASzip + qtbase + ]; + + cmakeFlags = [ + "-DOPTION_USE_DXF_LIB=ON" + "-DOPTION_USE_GDAL=ON" + "-DOPTION_USE_LIBLAS=ON" + "-DLIBLAS_INCLUDE_DIR=${libLAS}/include/liblas" + "-DLIBLAS_RELEASE_LIBRARY_FILE=${libLAS}/lib/liblas.so" + "-DOPTION_USE_SHAPE_LIB=ON" + ]; + + meta = with stdenv.lib; { + description = "3D point cloud and mesh processing software"; + homepage = https://www.danielgm.net/cc; + license = licenses.gpl2Plus; + }; +}