steamPackages.steam-chrootenv: install desktop file

This commit is contained in:
Nikolay Amiantov 2015-12-04 00:57:54 +03:00
parent f4bbd5b024
commit fc6a5f746b

View File

@ -1,4 +1,4 @@
{ lib, buildFHSUserEnv
{ lib, buildFHSUserEnv, steam
, withJava ? false
, withPrimus ? false
}:
@ -48,6 +48,13 @@ buildFHSUserEnv {
ln -s ../lib32/steam-runtime steamrt/i386
'';
extraInstallCommands = ''
mkdir -p $out/share/applications
ln -s ${steam}/share/icons $out/share
ln -s ${steam}/share/pixmaps $out/share
sed "s,/usr/bin/steam,$out/bin/steam,g" ${steam}/share/applications/steam.desktop > $out/share/applications/steam.desktop
'';
profile = ''
export STEAM_RUNTIME=/steamrt
'';