Steam: first attempt at adding the beta client.

The script installed with this expression only copies a boostrapper and another
script to the user's home folder. Those also need to be patched to get on with
the installation.
This commit is contained in:
Carles Pagès 2012-12-08 11:52:54 +01:00 committed by Evgeny Egorochkin
parent 0fc82b73be
commit 3cd37b550b
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ stdenv, fetchurl, dpkg, makeWrapper, xz }:
assert stdenv.system == "i686-linux";
let version = "1.0.0.16"; in
stdenv.mkDerivation rec {
name = "steam-${version}";
src = fetchurl {
url = "http://media.steampowered.com/client/installer/steam.deb";
sha256 = "0mx92f9hjjpg3blgmgp8sz0f3jg7m9hssdscipwybks258k8926m";
};
buildInputs = [ dpkg makeWrapper xz ];
phases = "installPhase";
installPhase = ''
mkdir -p $out
dpkg-deb -x $src $out
mv $out/usr/* $out/
rmdir $out/usr
substituteInPlace "$out/bin/steam" --replace "/bin/bash" "/bin/sh"
substituteInPlace "$out/bin/steam" --replace "/usr/" "$out/"
substituteInPlace "$out/bin/steam" --replace "\`basename \$0\`" "steam"
sed -i '/jockey-common/d' $out/bin/steam
wrapProgram "$out/bin/steam" --prefix PATH ":" \
"${xz}/bin"
'';
meta = {
description = "A digital distribution platform";
homepage = http://store.steampowered.com/;
license = "unfree";
};
}

View file

@ -9032,6 +9032,8 @@ let
stardust = callPackage ../games/stardust {};
steam = callPackage_i686 ../games/steam {};
stuntrally = callPackage ../games/stuntrally { };
superTux = callPackage ../games/super-tux { };