From 2e0e2603993a2bdf71552c96f671c8a01d0b4428 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 23 Feb 2016 09:57:30 +0100 Subject: 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 --- pkgs/games/steam/starbound.nix | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) (limited to 'pkgs/games/steam') 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 = ":"; -- cgit 1.4.1