gamescope: fix cross

This needs to be buildPackages.patchelfUnstable, as it's executed by the
build platform, during the build.
This commit is contained in:
Florian Klink 2024-08-11 20:40:07 +03:00
parent 4509215980
commit 0b16a47cd2

View File

@ -1,4 +1,5 @@
{ stdenv
, buildPackages
, edid-decode
, fetchFromGitHub
, meson
@ -31,7 +32,6 @@
, lcms
, lib
, makeBinaryWrapper
, patchelfUnstable
, nix-update-script
, enableExecutable ? true
, enableWsi ? true
@ -140,7 +140,7 @@ stdenv.mkDerivation (finalAttrs: {
postInstall = lib.optionalString enableExecutable ''
# using patchelf unstable because the stable version corrupts the binary
${lib.getExe patchelfUnstable} $out/bin/gamescope \
${lib.getExe buildPackages.patchelfUnstable} $out/bin/gamescope \
--add-rpath ${vulkan-loader}/lib --add-needed libvulkan.so.1
# --debug-layers flag expects these in the path