Skip to content

Commit f0b3154

Browse files
committed
meshlab: support gltf
1 parent 87806c9 commit f0b3154

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkgs/applications/graphics/meshlab/default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
structuresynth,
2929
}:
3030

31+
let
32+
tinygltf-src = fetchFromGitHub {
33+
owner = "syoyo";
34+
repo = "tinygltf";
35+
rev = "v2.6.3";
36+
hash = "sha256-IyezvHzgLRyc3z8HdNsQMqDEhP+Ytw0stFNak3C8lTo=";
37+
};
38+
in
3139
mkDerivation rec {
3240
pname = "meshlab";
3341
version = "2023.12";
@@ -69,6 +77,8 @@ mkDerivation rec {
6977

7078
preConfigure = ''
7179
substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop
80+
substituteInPlace src/external/tinygltf.cmake \
81+
--replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/tinygltf-2.6.3 ${tinygltf-src}
7282
substituteInPlace src/external/libigl.cmake \
7383
--replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/libigl-2.4.0 ${libigl}
7484
substituteInPlace src/external/nexus.cmake \

0 commit comments

Comments
 (0)