Merge pull request #151899 from brianmcgee/fix/google-chrome-hooks

google-chrome: add pre and post install hooks
This commit is contained in:
Michael Weiss 2021-12-23 22:53:56 +01:00 committed by GitHub
commit e95ee1fb36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,8 @@ in stdenv.mkDerivation {
binpath = makeBinPath deps;
installPhase = ''
runHook preInstall
case ${channel} in
beta) appname=chrome-beta dist=beta ;;
dev) appname=chrome-unstable dist=unstable ;;
@ -154,6 +156,8 @@ in stdenv.mkDerivation {
patchelf --set-rpath $rpath $elf
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $elf
done
runHook postInstall
'';
meta = {