From c37168656bba03f25ddd1294a3557f7e15bc109b Mon Sep 17 00:00:00 2001 From: Sewer56 Date: Sat, 2 Aug 2025 01:33:40 +0100 Subject: [PATCH] vscode: add FHS dependencies for extensions with embedded headless browsers Adds libraries needed for extensions that require running a standalone headless browser within vscode. For example, plugins that use the Puppeteer library for automation such as Roo Code. Includes X11, graphics, and audio libraries required for headless browser functionality. Minimal set of dependencies was determined via trial and error with `nix run github:nix-community/nix-index-database` --- pkgs/applications/editors/vscode/generic.nix | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pkgs/applications/editors/vscode/generic.nix b/pkgs/applications/editors/vscode/generic.nix index 058f8dc9a34a..78621e89657d 100644 --- a/pkgs/applications/editors/vscode/generic.nix +++ b/pkgs/applications/editors/vscode/generic.nix @@ -96,6 +96,31 @@ stdenv.mkDerivation ( # mono krb5 + + # Needed for headless browser-in-vscode based plugins such as + # anything based on Puppeteer https://pptr.dev . + # e.g. Roo Code + glib + nspr + nss + dbus + at-spi2-atk + cups + expat + libxkbcommon + xorg.libX11 + xorg.libXcomposite + xorg.libXdamage + xorg.libxcb + xorg.libXext + xorg.libXfixes + xorg.libXrandr + cairo + pango + alsa-lib + libgbm + udev + libudev0-shim ]) ++ additionalPkgs pkgs;