Unverified Commit 2cbded08 authored by Dacio's avatar Dacio Committed by GitHub
Browse files

wezterm: add vulkan-loader to library path (#218410)

* wezterm: add vulkan-loader to library path

* wezterm: switch to patchelf instead of wrapProgram
parent b4c4419b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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"