Merge pull request #137680 from benley/slack-hooks

slack: run preInstall & postInstall hooks

authored by

Timothy DeHerrera and committed by
GitHub
f5d48e20 c56b1da8

+6
+6
pkgs/applications/networking/instant-messengers/slack/default.nix
··· 147 147 dontPatchELF = true; 148 148 149 149 installPhase = '' 150 + runHook preInstall 151 + 150 152 # The deb file contains a setuid binary, so 'dpkg -x' doesn't work here 151 153 dpkg --fsys-tarfile $src | tar --extract 152 154 rm -rf usr/share/lintian ··· 172 174 substituteInPlace $out/share/applications/slack.desktop \ 173 175 --replace /usr/bin/ $out/bin/ \ 174 176 --replace /usr/share/ $out/share/ 177 + 178 + runHook postInstall 175 179 ''; 176 180 }; 177 181 ··· 185 189 sourceRoot = "Slack.app"; 186 190 187 191 installPhase = '' 192 + runHook preInstall 188 193 mkdir -p $out/Applications/Slack.app 189 194 cp -R . $out/Applications/Slack.app 190 195 /usr/bin/defaults write com.tinyspeck.slackmacgap SlackNoAutoUpdates -bool YES 196 + runHook postInstall 191 197 ''; 192 198 }; 193 199 in