From 2cbded08a287aab6721479772604fd2146606290 Mon Sep 17 00:00:00 2001 From: Dacio Date: Mon, 27 Feb 2023 08:44:42 -0800 Subject: [PATCH] wezterm: add vulkan-loader to library path (#218410) * wezterm: add vulkan-loader to library path * wezterm: switch to patchelf instead of wrapProgram --- pkgs/applications/terminal-emulators/wezterm/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix index 74de8d070750..15a605a32846 100644 --- a/pkgs/applications/terminal-emulators/wezterm/default.nix +++ b/pkgs/applications/terminal-emulators/wezterm/default.nix @@ -27,6 +27,7 @@ , UserNotifications , nixosTests , runCommand +, vulkan-loader }: rustPlatform.buildRustPackage rec { @@ -106,7 +107,10 @@ rustPlatform.buildRustPackage rec { ''; preFixup = lib.optionalString stdenv.isLinux '' - patchelf --add-needed "${libGL}/lib/libEGL.so.1" $out/bin/wezterm-gui + patchelf \ + --add-needed "${libGL}/lib/libEGL.so.1" \ + --add-needed "${vulkan-loader}/lib/libvulkan.so.1" \ + $out/bin/wezterm-gui '' + lib.optionalString stdenv.isDarwin '' mkdir -p "$out/Applications" OUT_APP="$out/Applications/WezTerm.app"