lol

meshlab-unstable: init at 2023.12-unstable-2025-02-21 (#386161)

authored by

Peder Bergebakken Sundt and committed by
GitHub
792337a4 618c33dd

+142
+127
pkgs/applications/graphics/meshlab-unstable/default.nix
··· 1 + { 2 + mkDerivation, 3 + lib, 4 + fetchFromGitHub, 5 + libGLU, 6 + qtbase, 7 + qtscript, 8 + qtxmlpatterns, 9 + lib3ds, 10 + bzip2, 11 + muparser, 12 + eigen, 13 + glew, 14 + gmp, 15 + levmar, 16 + qhull, 17 + cmake, 18 + cgal, 19 + boost, 20 + mpfr, 21 + xercesc, 22 + tbb, 23 + embree, 24 + libigl, 25 + corto, 26 + openctm, 27 + structuresynth, 28 + }: 29 + 30 + let 31 + tinygltf-src = fetchFromGitHub { 32 + owner = "syoyo"; 33 + repo = "tinygltf"; 34 + rev = "v2.6.3"; 35 + hash = "sha256-IyezvHzgLRyc3z8HdNsQMqDEhP+Ytw0stFNak3C8lTo="; 36 + }; 37 + # requires submodules to build 38 + lib3mf-src = fetchFromGitHub { 39 + owner = "3MFConsortium"; 40 + repo = "lib3mf"; 41 + rev = "v2.3.2"; 42 + fetchSubmodules = true; 43 + hash = "sha256-pKjnN9H6/A2zPvzpFed65J+mnNwG/dkSE2/pW7IlN58="; 44 + }; 45 + in 46 + mkDerivation { 47 + pname = "meshlab-unstable"; 48 + version = "2023.12-unstable-2025-02-21"; 49 + 50 + src = fetchFromGitHub { 51 + owner = "cnr-isti-vclab"; 52 + repo = "meshlab"; 53 + # note that this is in branch devel 54 + rev = "72142583980b6dbfc5b85c6cca226a72f48497a9"; 55 + sha256 = "1q7qga4d82pvpcbsp9pi2i7nzdbflhp6q0d3y31kpch9r3r9pzks"; 56 + # needed for an updated version of vcg in their submodule 57 + fetchSubmodules = true; 58 + }; 59 + 60 + buildInputs = [ 61 + libGLU 62 + qtbase 63 + qtscript 64 + qtxmlpatterns 65 + lib3ds 66 + bzip2 67 + muparser 68 + eigen 69 + glew 70 + gmp 71 + levmar 72 + qhull 73 + cgal 74 + boost 75 + mpfr 76 + xercesc 77 + tbb 78 + embree 79 + libigl 80 + corto 81 + openctm 82 + structuresynth 83 + ]; 84 + 85 + nativeBuildInputs = [ cmake ]; 86 + 87 + preConfigure = '' 88 + mkdir src/external/downloads 89 + cp -r --no-preserve=mode,ownership ${lib3mf-src} src/external/downloads/lib3mf-2.3.2 90 + 91 + substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop 92 + substituteInPlace src/external/tinygltf.cmake \ 93 + --replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/tinygltf-2.6.3 ${tinygltf-src} 94 + substituteInPlace src/external/libigl.cmake \ 95 + --replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/libigl-'$'{LIBIGL_VER} ${libigl} 96 + substituteInPlace src/external/nexus.cmake \ 97 + --replace-fail '$'{NEXUS_DIR}/src/corto ${corto.src} 98 + substituteInPlace src/external/levmar.cmake \ 99 + --replace-fail '$'{LEVMAR_LINK} ${levmar.src} \ 100 + --replace-warn "MD5 ''${LEVMAR_MD5}" "" 101 + substituteInPlace src/external/ssynth.cmake \ 102 + --replace-fail '$'{SSYNTH_LINK} ${structuresynth.src} \ 103 + --replace-warn "MD5 ''${SSYNTH_MD5}" "" 104 + substituteInPlace src/common_gui/CMakeLists.txt \ 105 + --replace-warn "MESHLAB_LIB_INSTALL_DIR" "CMAKE_INSTALL_LIBDIR" 106 + ''; 107 + 108 + postFixup = '' 109 + patchelf --add-needed $out/lib/meshlab/libmeshlab-common.so $out/bin/.meshlab-wrapped 110 + patchelf --add-needed $out/lib/meshlab/lib3mf.so $out/lib/meshlab/plugins/libio_3mf.so 111 + ''; 112 + 113 + # display a black screen on wayland, so force XWayland for now. 114 + # Might be fixed when upstream will be ready for Qt6. 115 + qtWrapperArgs = [ 116 + "--set QT_QPA_PLATFORM xcb" 117 + ]; 118 + 119 + meta = { 120 + description = "System for processing and editing 3D triangular meshes (unstable)"; 121 + mainProgram = "meshlab"; 122 + homepage = "https://www.meshlab.net/"; 123 + license = lib.licenses.gpl3Only; 124 + maintainers = with lib.maintainers; [ pca006132 ]; 125 + platforms = with lib.platforms; linux; 126 + }; 127 + }
+14
pkgs/applications/graphics/meshlab-unstable/meshlab.desktop
··· 1 + [Desktop Entry] 2 + Name=MeshLab 3 + Version=@version@ 4 + Name[en_GB]=MeshLab 5 + GenericName=Mesh processing 6 + GenericName[en_GB]=Mesh processing 7 + Comment=View and process meshes 8 + Type=Application 9 + Exec=@out@/bin/meshlab %U 10 + TryExec=@out@/bin/meshlab 11 + Icon=@out@/share/icons/hicolor/meshlab.png 12 + Terminal=false 13 + MimeType=model/mesh;application/x-3ds;image/x-3ds;model/x-ply;application/sla;model/x-quad-object;model/x-geomview-off;application/x-cyclone-ptx;application/x-vmi;application/x-bre;model/vnd.collada+xml;model/openctm;application/x-expe-binary;application/x-expe-ascii;application/x-xyz;application/x-gts;chemical/x-pdb;application/x-tri;application/x-asc;model/x3d+xml;model/x3d+vrml;model/vrml;model/u3d;model/idtf; 14 + Categories=Graphics;3DGraphics;Viewer;Qt;
+1
pkgs/top-level/all-packages.nix
··· 14205 14205 meshcentral = callPackage ../tools/admin/meshcentral { }; 14206 14206 14207 14207 meshlab = libsForQt5.callPackage ../applications/graphics/meshlab { }; 14208 + meshlab-unstable = libsForQt5.callPackage ../applications/graphics/meshlab-unstable { }; 14208 14209 14209 14210 michabo = libsForQt5.callPackage ../applications/misc/michabo { }; 14210 14211