cloudcompare: Initial packaging

This commit is contained in:
Tyson Whitehead
2018-07-17 00:17:52 -04:00
parent 6971b0766b
commit 6118f8b275
2 changed files with 44 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ self: super: pkgs: with pkgs; {
boost = boost162;
};
cloudcompare = libsForQt5.callPackage ./cloudcompare.nix { };
cryptominisat = callPackage ./cryptominisat.nix { };
#firedrake = callPackage ./firedrake { };

42
pkgs/cloudcompare.nix Normal file
View File

@@ -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;
};
}