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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user