|
67 | 67 | }) |
68 | 68 | else pkgs.libreoffice; |
69 | 69 |
|
70 | | - microsoft-excel = |
71 | | - if hostPlatform.isDarwin |
72 | | - then |
73 | | - pkgs.brewCasks.microsoft-excel.overrideAttrs (oldAttrs: { |
74 | | - installPhase = |
75 | | - oldAttrs.installPhase |
76 | | - + '' |
77 | | - # Clean Resources |
78 | | - echo "Removing entire Resources directory from microsoft-excel installation..." |
79 | | - local resource_dir="$out/Resources" |
80 | | -
|
81 | | - if [ -d "$resource_dir" ]; then |
82 | | - echo "Found directory '$resource_dir' and removing it..." |
83 | | - rm -rf "$resource_dir" |
84 | | - else |
85 | | - echo "Warning: Resources directory '$resource_dir' not found. It may have been removed already or path is wrong." >&2 |
86 | | - fi |
87 | | - echo "Finished cleanup (removed Resources) for microsoft-excel." |
88 | | -
|
89 | | - # Remove shared components to avoid collision with other Office apps |
90 | | - echo "Removing shared licensing helper from microsoft-excel..." |
91 | | - local helper_dir="$out/Library/PrivilegedHelperTools" |
92 | | - if [ -d "$helper_dir" ]; then |
93 | | - rm -rf "$helper_dir" |
94 | | - echo "Removed PrivilegedHelperTools directory." |
95 | | - fi |
96 | | -
|
97 | | - echo "Removing Microsoft AutoUpdate app from microsoft-excel..." |
98 | | - local autoupdate_app="$out/Applications/Microsoft AutoUpdate.app" |
99 | | - if [ -d "$autoupdate_app" ]; then |
100 | | - rm -rf "$autoupdate_app" |
101 | | - echo "Removed Microsoft AutoUpdate.app" |
102 | | - fi |
103 | | - ''; |
104 | | - }) |
105 | | - else null; |
| 70 | + # microsoft-excel = |
| 71 | + # if hostPlatform.isDarwin |
| 72 | + # then |
| 73 | + # pkgs.brewCasks.microsoft-excel.overrideAttrs (oldAttrs: { |
| 74 | + # installPhase = |
| 75 | + # oldAttrs.installPhase |
| 76 | + # + '' |
| 77 | + # # Clean Resources |
| 78 | + # echo "Removing entire Resources directory from microsoft-excel installation..." |
| 79 | + # local resource_dir="$out/Resources" |
| 80 | + # |
| 81 | + # if [ -d "$resource_dir" ]; then |
| 82 | + # echo "Found directory '$resource_dir' and removing it..." |
| 83 | + # rm -rf "$resource_dir" |
| 84 | + # else |
| 85 | + # echo "Warning: Resources directory '$resource_dir' not found. It may have been removed already or path is wrong." >&2 |
| 86 | + # fi |
| 87 | + # echo "Finished cleanup (removed Resources) for microsoft-excel." |
| 88 | + # |
| 89 | + # # Remove shared components to avoid collision with other Office apps |
| 90 | + # echo "Removing shared licensing helper from microsoft-excel..." |
| 91 | + # local helper_dir="$out/Library/PrivilegedHelperTools" |
| 92 | + # if [ -d "$helper_dir" ]; then |
| 93 | + # rm -rf "$helper_dir" |
| 94 | + # echo "Removed PrivilegedHelperTools directory." |
| 95 | + # fi |
| 96 | + # |
| 97 | + # echo "Removing Microsoft AutoUpdate app from microsoft-excel..." |
| 98 | + # local autoupdate_app="$out/Applications/Microsoft AutoUpdate.app" |
| 99 | + # if [ -d "$autoupdate_app" ]; then |
| 100 | + # rm -rf "$autoupdate_app" |
| 101 | + # echo "Removed Microsoft AutoUpdate.app" |
| 102 | + # fi |
| 103 | + # ''; |
| 104 | + # }) |
| 105 | + # else null; |
106 | 106 | } |
107 | 107 | ++ calibreWrappers |
108 | 108 | ++ sofficeWrapper; |
|
0 commit comments