From 92c5b88321dce1f7e662d446fe50a7151537ee03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Mon, 22 Sep 2025 12:55:56 -0400 Subject: [PATCH] vscodium: fix wrapper --- pkgs/applications/editors/vscode/generic.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/editors/vscode/generic.nix b/pkgs/applications/editors/vscode/generic.nix index 28aba5a67d59..a66f84ecac2b 100644 --- a/pkgs/applications/editors/vscode/generic.nix +++ b/pkgs/applications/editors/vscode/generic.nix @@ -1,6 +1,8 @@ { stdenv, lib, + coreutils, + gnugrep, copyDesktopItems, makeDesktopItem, unzip, @@ -310,10 +312,16 @@ stdenv.mkDerivation ( lib.optionalString stdenv.hostPlatform.isLinux "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libdbusmenu ]}" } - '' - # Add gio to PATH so that moving files to the trash works when not using a desktop environment - + '' - --prefix PATH : ${glib.bin}/bin + --prefix PATH : ${ + lib.makeBinPath [ + # for moving files to trash + glib + + # for launcher script + gnugrep + coreutils + ] + } --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true --wayland-text-input-version=3}}" --add-flags ${lib.escapeShellArg commandLineArgs} )