From f74e440d7f820ff66dd0df56f684c676a5b8cc06 Mon Sep 17 00:00:00 2001 From: sund3RRR Date: Wed, 2 Apr 2025 22:01:44 +0300 Subject: [PATCH] qt6: use isELF and isMachO in wrapQtAppsHook --- pkgs/development/libraries/qt-6/hooks/wrap-qt-apps-hook.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/qt-6/hooks/wrap-qt-apps-hook.sh b/pkgs/development/libraries/qt-6/hooks/wrap-qt-apps-hook.sh index b510d1b51405..cc3e9179475d 100644 --- a/pkgs/development/libraries/qt-6/hooks/wrap-qt-apps-hook.sh +++ b/pkgs/development/libraries/qt-6/hooks/wrap-qt-apps-hook.sh @@ -81,6 +81,9 @@ if [[ -z "${__nix_wrapQtAppsHook-}" ]]; then [ -d "$targetDir" ] || continue find "$targetDir" ! -type d -executable -print0 | while IFS= read -r -d '' file; do + # Skip the file if it is not a binary (ELF or Mach-O) + isELF "$file" || isMachO "$file" || continue + if [ -h "$file" ]; then target="$(readlink -e "$file")" echo "wrapping $file -> $target"