From 6e1ec4b79b541beb26bfdadb9192e07e9b840e05 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 17 Nov 2024 03:12:12 +0100 Subject: [PATCH] lact: add libvulkan.so as NEEDED too This isn't strictly necessary but does make sense to do for transparency. --- pkgs/by-name/la/lact/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/la/lact/package.nix b/pkgs/by-name/la/lact/package.nix index e9b60d743e1c..0ead394440d4 100644 --- a/pkgs/by-name/la/lact/package.nix +++ b/pkgs/by-name/la/lact/package.nix @@ -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 = {