2020-09-25 04:45:31 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, libGLU
|
|
|
|
, qtbase
|
|
|
|
, qtscript
|
|
|
|
, qtxmlpatterns
|
|
|
|
, lib3ds
|
|
|
|
, bzip2
|
|
|
|
, muparser
|
2020-08-20 17:08:02 +00:00
|
|
|
, eigen
|
|
|
|
, glew
|
|
|
|
, gmp
|
2020-04-24 23:36:52 +00:00
|
|
|
, levmar
|
2020-08-20 17:08:02 +00:00
|
|
|
, qhull
|
|
|
|
, cmake
|
2024-01-02 11:29:13 +00:00
|
|
|
, cgal
|
2024-04-21 15:54:59 +00:00
|
|
|
, boost
|
2022-01-03 16:56:52 +00:00
|
|
|
, mpfr
|
|
|
|
, xercesc
|
2024-04-21 15:54:59 +00:00
|
|
|
, tbb
|
|
|
|
, embree
|
|
|
|
, vcg
|
|
|
|
, libigl
|
|
|
|
, corto
|
|
|
|
, openctm
|
|
|
|
, structuresynth
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
mkDerivation rec {
|
|
|
|
pname = "meshlab";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2023.12";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cnr-isti-vclab";
|
|
|
|
repo = "meshlab";
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "MeshLab-${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-AdUAWS741RQclYaSE3Tz1/I0YSinNAnfSaqef+Tib8Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libGLU
|
|
|
|
qtbase
|
|
|
|
qtscript
|
|
|
|
qtxmlpatterns
|
|
|
|
lib3ds
|
|
|
|
bzip2
|
|
|
|
muparser
|
2020-08-20 17:08:02 +00:00
|
|
|
eigen
|
|
|
|
glew
|
|
|
|
gmp
|
2020-04-24 23:36:52 +00:00
|
|
|
levmar
|
2020-08-20 17:08:02 +00:00
|
|
|
qhull
|
2024-01-02 11:29:13 +00:00
|
|
|
cgal
|
2024-04-21 15:54:59 +00:00
|
|
|
boost
|
2022-01-03 16:56:52 +00:00
|
|
|
mpfr
|
|
|
|
xercesc
|
2024-04-21 15:54:59 +00:00
|
|
|
tbb
|
|
|
|
embree
|
|
|
|
vcg
|
|
|
|
libigl
|
|
|
|
corto
|
|
|
|
openctm
|
|
|
|
structuresynth
|
2020-08-20 17:08:02 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop
|
|
|
|
substituteInPlace src/external/libigl.cmake \
|
|
|
|
--replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/libigl-2.4.0 ${libigl}
|
|
|
|
substituteInPlace src/external/nexus.cmake \
|
|
|
|
--replace-fail '$'{NEXUS_DIR}/src/corto ${corto.src}
|
|
|
|
substituteInPlace src/external/levmar.cmake \
|
|
|
|
--replace-fail '$'{LEVMAR_LINK} ${levmar.src} \
|
|
|
|
--replace-warn "MD5 ''${LEVMAR_MD5}" ""
|
|
|
|
substituteInPlace src/external/ssynth.cmake \
|
|
|
|
--replace-fail '$'{SSYNTH_LINK} ${structuresynth.src} \
|
|
|
|
--replace-warn "MD5 ''${SSYNTH_MD5}" ""
|
|
|
|
substituteInPlace src/common_gui/CMakeLists.txt \
|
|
|
|
--replace-warn "MESHLAB_LIB_INSTALL_DIR" "CMAKE_INSTALL_LIBDIR"
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
cmakeFlags = [
|
2024-04-21 15:54:59 +00:00
|
|
|
"-DVCGDIR=${vcg.src}"
|
2024-01-13 08:15:51 +00:00
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
postFixup = ''
|
|
|
|
patchelf --add-needed $out/lib/meshlab/libmeshlab-common.so $out/bin/.meshlab-wrapped
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "System for processing and editing 3D triangular meshes";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "meshlab";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://www.meshlab.net/";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|