From 827cc913f1d883d8dbc0f98827cb2d5192de3bfd Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Thu, 5 Sep 2024 09:11:42 +0100 Subject: [PATCH] google-chrome: fix makeWrapper invocation --- pkgs/by-name/go/google-chrome/package.nix | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/go/google-chrome/package.nix b/pkgs/by-name/go/google-chrome/package.nix index 98692e0868d3..aa4546eafa07 100644 --- a/pkgs/by-name/go/google-chrome/package.nix +++ b/pkgs/by-name/go/google-chrome/package.nix @@ -236,6 +236,7 @@ let mv "$icon_file" "$logo_output_path/google-$appname.png" done + # "--simulate-outdated-no-au" disables auto updates and browser outdated popup makeWrapper "$out/share/google/$appname/google-$appname" "$exe" \ --prefix LD_LIBRARY_PATH : "$rpath" \ --prefix PATH : "$binpath" \ @@ -243,13 +244,8 @@ let --prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:${addDriverRunpath.driverLink}/share" \ --set CHROME_WRAPPER "google-chrome-$dist" \ --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \ - --add-flags ${ - lib.concatStringsSep " " [ - (lib.escapeShellArg commandLineArgs) - # Disables auto updates and browser outdated popup - "--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'" - ] - } + --add-flags "--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'" \ + --add-flags ${lib.escapeShellArg commandLineArgs} for elf in $out/share/google/$appname/{chrome,chrome-sandbox,chrome_crashpad_handler}; do patchelf --set-rpath $rpath $elf @@ -288,15 +284,11 @@ let cp -r *.app $out/Applications mkdir -p $out/bin - makeWrapper $out/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $out/bin/google-chrome-stable \ - --add-flags ${ - lib.concatStringsSep " " [ - (lib.escapeShellArg commandLineArgs) - # Disables auto updates and browser outdated popup - "--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'" - ] - } + # "--simulate-outdated-no-au" disables auto updates and browser outdated popup + makeWrapper $out/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $out/bin/google-chrome-stable \ + --add-flags "--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'" \ + --add-flags ${lib.escapeShellArg commandLineArgs} runHook postInstall ''; });