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