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

* wezterm: add vulkan-loader to library path

* wezterm: switch to patchelf instead of wrapProgram
This commit is contained in:
Dacio
2023-02-27 17:44:42 +01:00
committed by GitHub
parent b4c4419b05
commit 2cbded08a2
@@ -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"