Merge pull request #122765 from legendofmiracles/steam-tui

steam-tui: adds missing runtime dependencies correctly
This commit is contained in:
Sandro 2021-05-12 22:59:33 +02:00 committed by GitHub
commit 88df2cb177
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,8 @@ rustPlatform.buildRustPackage rec {
mv $out/bin/steam-tui $out/bin/.steam-tui-unwrapped
cat > $out/bin/steam-tui <<EOF
#!${runtimeShell}
exec steam-run $out/bin/.steam-tui-unwrapped '$@'
export PATH=${steamcmd}/bin:\$PATH
exec ${steam-run-native}/bin/steam-run $out/bin/.steam-tui-unwrapped '\$@'
EOF
chmod +x $out/bin/steam-tui
'';