-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jovian-steam-protocol-handler: replace with its own fhsenv
Breaks dep cycle from steam -> polkit-helpers -> hwsupport -> handler -> steam
- Loading branch information
Showing
1 changed file
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" | ||
''; | ||
} |