|
30 | 30 | # hash = "sha256-OqvLiwB5TwZaxDvyN/+/+eueBdWNaYxd81cd5AZK/mA="; |
31 | 31 | # npmDepsHash = "sha256-vy7osk3UAOEgsJx9jdcGe2wICOk5Urzxh1WLAHyHM+U="; |
32 | 32 | # }; |
| 33 | + # Chrome 136+ ignores remote debugging switches on the default profile. |
| 34 | + # Keep the wrapper in place, but do not inject remote debugging flags into |
| 35 | + # the normal Chrome launcher. The supported path for a real profile is the |
| 36 | + # Chrome remote debugging permission flow used by chrome-devtools-mcp |
| 37 | + # --auto-connect. |
| 38 | + chromeRemoteDebuggingFlags = []; |
33 | 39 | placeholder = null; # Dummy binding to keep let block valid |
34 | 40 | in |
35 | 41 | { |
| 42 | + google-chrome = prev.symlinkJoin { |
| 43 | + name = prev.google-chrome.name; |
| 44 | + paths = [ prev.google-chrome ]; |
| 45 | + nativeBuildInputs = [ final.makeWrapper ]; |
| 46 | + postBuild = '' |
| 47 | + rm "$out/bin/google-chrome" "$out/bin/google-chrome-stable" |
| 48 | +
|
| 49 | + makeWrapper ${prev.google-chrome}/bin/google-chrome "$out/bin/google-chrome" \ |
| 50 | + ${final.lib.concatMapStringsSep " " (flag: "--add-flags ${final.lib.escapeShellArg flag}") chromeRemoteDebuggingFlags} |
| 51 | +
|
| 52 | + makeWrapper ${prev.google-chrome}/bin/google-chrome-stable "$out/bin/google-chrome-stable" \ |
| 53 | + ${final.lib.concatMapStringsSep " " (flag: "--add-flags ${final.lib.escapeShellArg flag}") chromeRemoteDebuggingFlags} |
| 54 | +
|
| 55 | + for desktopName in google-chrome.desktop com.google.Chrome.desktop; do |
| 56 | + desktopFile="$out/share/applications/$desktopName" |
| 57 | + if [ -f "$desktopFile" ]; then |
| 58 | + rm "$desktopFile" |
| 59 | + cp "${prev.google-chrome}/share/applications/$desktopName" "$desktopFile" |
| 60 | + substituteInPlace "$desktopFile" \ |
| 61 | + --replace-fail "${prev.google-chrome}/bin/google-chrome-stable" "$out/bin/google-chrome-stable" |
| 62 | + fi |
| 63 | + done |
| 64 | + ''; |
| 65 | + meta = prev.google-chrome.meta; |
| 66 | + }; |
| 67 | + |
36 | 68 | # Fix poetry pbs-installer version constraint issue |
37 | 69 | poetry = prev.poetry.overrideAttrs (oldAttrs: { |
38 | 70 | dontCheckRuntimeDeps = true; |
|
0 commit comments