about summary refs log tree commit diff
path: root/pkgs/applications/terminal-emulators/wezterm
diff options
context:
space:
mode:
authorDacio <dacioromero@gmail.com>2023-02-27 08:44:42 -0800
committerGitHub <noreply@github.com>2023-02-27 17:44:42 +0100
commit2cbded08a287aab6721479772604fd2146606290 (patch)
tree9feaf279656c839bc4e24ec210dce10f381a5fff /pkgs/applications/terminal-emulators/wezterm
parentb4c4419b05700f5a0af8a9d603f293404d75854e (diff)
wezterm: add vulkan-loader to library path (#218410)
* wezterm: add vulkan-loader to library path

* wezterm: switch to patchelf instead of wrapProgram
Diffstat (limited to 'pkgs/applications/terminal-emulators/wezterm')
-rw-r--r--pkgs/applications/terminal-emulators/wezterm/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/terminal-emulators/wezterm/default.nix b/pkgs/applications/terminal-emulators/wezterm/default.nix
index 74de8d0707501..15a605a328466 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"