diff options
author | Nikolay Amiantov <ab@fmap.me> | 2015-12-04 00:57:54 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2015-12-04 01:00:27 +0300 |
commit | fc6a5f746b6942f91e33b50eb967a382f97599a6 (patch) | |
tree | 73ba2a304c18840f3d13244c5befa0fb389da579 /pkgs/games/steam/chrootenv.nix | |
parent | f4bbd5b024273cbdcb1d84c17ae46eb8877da533 (diff) | |
download | nixpkgs-fc6a5f746b6942f91e33b50eb967a382f97599a6.tar nixpkgs-fc6a5f746b6942f91e33b50eb967a382f97599a6.tar.gz nixpkgs-fc6a5f746b6942f91e33b50eb967a382f97599a6.tar.bz2 nixpkgs-fc6a5f746b6942f91e33b50eb967a382f97599a6.tar.lz nixpkgs-fc6a5f746b6942f91e33b50eb967a382f97599a6.tar.xz nixpkgs-fc6a5f746b6942f91e33b50eb967a382f97599a6.tar.zst nixpkgs-fc6a5f746b6942f91e33b50eb967a382f97599a6.zip |
steamPackages.steam-chrootenv: install desktop file
Diffstat (limited to 'pkgs/games/steam/chrootenv.nix')
-rw-r--r-- | pkgs/games/steam/chrootenv.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/games/steam/chrootenv.nix b/pkgs/games/steam/chrootenv.nix index 2a5795be93c..fc0e70e4354 100644 --- a/pkgs/games/steam/chrootenv.nix +++ b/pkgs/games/steam/chrootenv.nix @@ -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 ''; |