mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
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:
parent
4509215980
commit
0b16a47cd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user