Commit 6e1ec4b7 authored by Atemu's avatar Atemu
Browse files

lact: add libvulkan.so as NEEDED too

This isn't strictly necessary but does make sense to do for transparency.
parent 97a043ae
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
{ 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 = {