Skip to content

Commit

Permalink
jovian-steam-protocol-handler: replace with its own fhsenv
Browse files Browse the repository at this point in the history
Breaks dep cycle from steam -> polkit-helpers -> hwsupport -> handler -> steam
  • Loading branch information
K900 committed Oct 11, 2023
1 parent 7dd743d commit 443af9a
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions pkgs/jovian-steam-protocol-handler/default.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
{
buildFHSEnv,
writeShellScript,
steamPackages,
}:
# Just enough fhsenv to run just enough of Steam to actually send a URL to the _real_ Steam.
# FIXME: this is a hack, replace with a better implementation
# Investigate magic socket?
writeShellScript "jovian-steam-protocol-handler" ''
exec ${steamPackages.steam-fhsenv.run}/bin/steam-run ~/.steam/root/ubuntu12_32/steam "$@"
''
buildFHSEnv {
name = "jovian-steam-protocol-handler";

multiArch = true;
multiPkgs = pkgs: with pkgs; [
glibc
xorg.libX11
xorg.libxcb
xorg.libXau
xorg.libXdmcp
];

runScript = writeShellScript "jovian-steam-protocol-handler-impl" ''
exec ~/.steam/root/ubuntu12_32/steam "$@"
'';
}

0 comments on commit 443af9a

Please sign in to comment.