diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-02-23 09:57:30 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-02-23 09:57:30 +0100 |
commit | 2e0e2603993a2bdf71552c96f671c8a01d0b4428 (patch) | |
tree | 3736ada9e38f9b297c3608b14c017facb60ee469 /pkgs/games/steam/starbound.nix | |
parent | d7e16e53b17106871a443aa35bbf64048712b365 (diff) |
pkgs/games/starbound: Update to latest unstable
This also fixes the date for the stable version, so that it closer matches the steamdb entry. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/steam/starbound.nix')
-rw-r--r-- | pkgs/games/steam/starbound.nix | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/pkgs/games/steam/starbound.nix b/pkgs/games/steam/starbound.nix index ba63fcfa..0dab7cf2 100644 --- a/pkgs/games/steam/starbound.nix +++ b/pkgs/games/steam/starbound.nix @@ -33,30 +33,34 @@ let else if stdenv.system == "x86_64-cygwin" then "win64" else throw "Unsupported system ${stdenv.system} for Starbound"; - upstream = let - attrs = if flavor == "stable" then { - name = "starbound"; - appId = 211820; - depotId = 211821; - manifestId = 1842730272313189605; - sha256 = "0qppfn56c778wsg38hi6sxgi3rl9nv72h9rmmxybi1vzpf3p49py"; - } else if flavor == "unstable" then { - name = "starbound-unstable"; - appId = 367540; - depotId = 367541; - manifestId = 6970641909803280413; - sha256 = "0qppfn56c778wsg38hi6sxgi3rl9nv72h9rmmxybi1vzpf3p49py"; - } else throw "Unsupported flavor, use either `stable' or `unstable'."; - in fetchSteam (attrs // { + upstreamInfo = if flavor == "stable" then { + name = "starbound"; + version = "20151216"; + appId = 211820; + depotId = 211821; + manifestId = 1842730272313189605; + sha256 = "0qppfn56c778wsg38hi6sxgi3rl9nv72h9rmmxybi1vzpf3p49py"; + } else if flavor == "unstable" then { + name = "starbound-unstable"; + version = "20160223"; + appId = 367540; + depotId = 367541; + manifestId = 6970641909803280413; + sha256 = "0qppfn56c778wsg38hi6sxgi3rl9nv72h9rmmxybi1vzpf3p49py"; + } else throw "Unsupported flavor, use either `stable' or `unstable'."; + + upstream = fetchSteam { + inherit (upstreamInfo) name appId depotId manifestId sha256; fileList = [ "^(?:assets|tiled)/" ( "^${binpath}(?:/Starbound\\.app/Contents/MacOS)?" + "/(?:[a-zA-Z0-9_-]+(?:\\.exe)?|sbboot\\.config)$") ]; - }); + }; in stdenv.mkDerivation { - name = "${upstream.name}-20160208"; + name = "${upstreamInfo.name}-${upstreamInfo.version}"; + inherit (upstreamInfo) version; unpackPhase = ":"; |