3
0
Fork 0
forked from mirrors/nixpkgs

steam: add amd64 version and point url to fix version (as suggested by aristid).

Valve has a repository with fixed version packages, so use that instead of the
steam.deb I was using. They also have amd64 packages there.
This commit is contained in:
Carles Pagès 2013-02-19 20:34:54 +01:00 committed by Evgeny Egorochkin
parent 3f4557b0eb
commit 97ea8d61e6
2 changed files with 14 additions and 6 deletions

View file

@ -8,17 +8,25 @@
, curl, mesa # Superbrothers: S&S EP , curl, mesa # Superbrothers: S&S EP
, patchelf }: , patchelf }:
assert stdenv.system == "i686-linux"; assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
let version = "1.0.0.28"; in let version = "1.0.0.28"; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "steam-${version}"; name = "steam-${version}";
src = fetchurl { src =
url = "http://media.steampowered.com/client/installer/steam.deb"; if stdenv.system == "i686-linux" then
fetchurl {
url = "http://repo.steampowered.com/steam/archive/precise/steam_${version}_i386.deb";
sha256 = "0c0n1v9rnn6jj2wrvbmi77j9v93f3ndw039z9db6092yqls1amqk"; sha256 = "0c0n1v9rnn6jj2wrvbmi77j9v93f3ndw039z9db6092yqls1amqk";
}; }
else if stdenv.system == "x86_64-linux" then
fetchurl {
url = "http://repo.steampowered.com/steam/archive/precise/steam64_${version}_amd64.deb";
sha256 = "1dr2b9s036w8r46az1f9cjddrjaf8a9k564g65j288y6w9pcdb2w";
}
else throw "Steam not supported on this platform.";
buildInputs = [ dpkg makeWrapper ]; buildInputs = [ dpkg makeWrapper ];

View file

@ -9034,7 +9034,7 @@ let
stardust = callPackage ../games/stardust {}; stardust = callPackage ../games/stardust {};
steam = callPackage_i686 ../games/steam {}; steam = callPackage ../games/steam {};
stuntrally = callPackage ../games/stuntrally { }; stuntrally = callPackage ../games/stuntrally { };