diff --git a/pkgs/by-name/me/meshlab/no-plist.patch b/pkgs/by-name/me/meshlab/no-plist.patch new file mode 100644 index 000000000000..7c8d753190a8 --- /dev/null +++ b/pkgs/by-name/me/meshlab/no-plist.patch @@ -0,0 +1,12 @@ +--- src/meshlab/CMakeLists.txt.orig 2025-10-05 23:04:12.786192073 +0200 ++++ src/meshlab/CMakeLists.txt 2025-10-05 23:04:16.379256637 +0200 +@@ -92,9 +92,6 @@ + MACOSX_BUNDLE_COPYRIGHT "Copyright VCG-ISTI-CNR © 2005-2021. All rights reserved." + ) + +- set_additional_settings_info_plist( +- TARGET meshlab +- FILE ${MESHLAB_BUILD_DISTRIB_DIR}/meshlab.app/Contents/Info.plist) + endif() + + install( diff --git a/pkgs/by-name/me/meshlab/package.nix b/pkgs/by-name/me/meshlab/package.nix index 0be074cf79e1..9e431b24d75d 100644 --- a/pkgs/by-name/me/meshlab/package.nix +++ b/pkgs/by-name/me/meshlab/package.nix @@ -102,19 +102,14 @@ stdenv.mkDerivation (finalAttrs: { # ref. https://github.com/cnr-isti-vclab/meshlab/pull/1617 # merged upstream ./1617_cmake-use-system-dependencies-install-exports.patch + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + ./no-plist.patch ]; - postPatch = - lib.optionalString stdenv.hostPlatform.isLinux '' - substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop - '' - + lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace src/meshlab/CMakeLists.txt \ - --replace-fail "set_additional_settings_info_plist(" "# set_additional_settings_info_plist(" \ - --replace-fail " TARGET meshlab" "# TARGET meshlab" \ - --replace-fail " FILE \''${MESHLAB_BUILD_DISTRIB_DIR}/meshlab.app/Contents/Info.plist)" \ - "# FILE \''${MESHLAB_BUILD_DISTRIB_DIR}/meshlab.app/Contents/Info.plist)" - ''; + postPatch = lib.optionalString stdenv.hostPlatform.isLinux '' + substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop + ''; cmakeFlags = cmakeFlagsDisallowDownload;