From f0b31540c803eaa54fee892c3039c33e26c77058 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Sun, 2 Mar 2025 00:03:07 +0800 Subject: [PATCH] meshlab: support gltf --- pkgs/applications/graphics/meshlab/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/graphics/meshlab/default.nix b/pkgs/applications/graphics/meshlab/default.nix index c22679a75d88..710ab40c6dbc 100644 --- a/pkgs/applications/graphics/meshlab/default.nix +++ b/pkgs/applications/graphics/meshlab/default.nix @@ -28,6 +28,14 @@ structuresynth, }: +let + tinygltf-src = fetchFromGitHub { + owner = "syoyo"; + repo = "tinygltf"; + rev = "v2.6.3"; + hash = "sha256-IyezvHzgLRyc3z8HdNsQMqDEhP+Ytw0stFNak3C8lTo="; + }; +in mkDerivation rec { pname = "meshlab"; version = "2023.12"; @@ -69,6 +77,8 @@ mkDerivation rec { preConfigure = '' substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop + substituteInPlace src/external/tinygltf.cmake \ + --replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/tinygltf-2.6.3 ${tinygltf-src} substituteInPlace src/external/libigl.cmake \ --replace-fail '$'{MESHLAB_EXTERNAL_DOWNLOAD_DIR}/libigl-2.4.0 ${libigl} substituteInPlace src/external/nexus.cmake \