summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian McGee <brian@41north.dev>2021-12-23 16:43:01 +0000
committerMichael Weiss <dev.primeos@gmail.com>2022-01-05 19:13:05 +0100
commit2e15415fede3883a4bfcf35ca832fc53f525f686 (patch)
treec533d069465ef37fdf20a424d5ea2c05e81d6028
parentchromiumDev: 98.0.4750.0 -> 98.0.4758.9 (diff)
downloadnixpkgs-2e15415fede3883a4bfcf35ca832fc53f525f686.tar.gz
google-chrome: add pre and post install hooks
This makes it easier to override the derivation (cherry picked from commit 234c7cf4310ac897bcc2d1faca7e696fa7016f07)
-rw-r--r--pkgs/applications/networking/browsers/google-chrome/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/google-chrome/default.nix b/pkgs/applications/networking/browsers/google-chrome/default.nix
index 03bdb84f4384..fe6ef5c059de 100644
--- a/pkgs/applications/networking/browsers/google-chrome/default.nix
+++ b/pkgs/applications/networking/browsers/google-chrome/default.nix
@@ -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 = {