3
0
Fork 0
forked from mirrors/nixpkgs

google-chrome: add pre and post install hooks

This makes it easier to override the derivation
This commit is contained in:
Brian McGee 2021-12-23 16:43:01 +00:00
parent 49830d258c
commit 234c7cf431
No known key found for this signature in database
GPG key ID: D708AB8298D76283

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 = {