lact: add libvulkan.so as NEEDED too

This isn't strictly necessary but does make sense to do for transparency.
This commit is contained in:
Atemu 2024-11-17 03:12:12 +01:00
parent 97a043ae9a
commit 6e1ec4b79b

View File

@ -1,5 +1,6 @@
{ lib
, rustPlatform
, stdenv
, fetchFromGitHub
, blueprint-compiler
, pkg-config
@ -60,9 +61,8 @@ rustPlatform.buildRustPackage rec {
install -Dm444 res/io.github.lact-linux.png -t $out/share/pixmaps
'';
postFixup = ''
patchelf $out/bin/.lact-wrapped \
--add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}
postFixup = lib.optionalString stdenv.targetPlatform.isElf ''
patchelf $out/bin/.lact-wrapped --add-needed libvulkan.so --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]}
'';
meta = {