From 4c1051225a1bc99f3bab8512e26c221e860565f0 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 12 Mar 2016 00:45:12 +0100 Subject: games/fetchsteam: Allow to specify a branch Currently this is not useful for anything but just a placeholder because currently the depot downloader isn't able to pick from a particular branch but only fetches based on the manifest ID. Signed-off-by: aszlig --- pkgs/games/steam/fetchsteam/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/games/steam/fetchsteam/default.nix b/pkgs/games/steam/fetchsteam/default.nix index cccddb51..5c1faf55 100644 --- a/pkgs/games/steam/fetchsteam/default.nix +++ b/pkgs/games/steam/fetchsteam/default.nix @@ -2,7 +2,7 @@ , username, password }: -{ name, appId, depotId, manifestId, sha256, fileList ? [] }: +{ name, appId, depotId, manifestId, branch ? null, sha256, fileList ? [] }: let protobuf-net = buildDotnetPackage rec { @@ -85,6 +85,7 @@ in with stdenv.lib; runCommand "${name}-src" { } '' depotdownloader -app "$appId" -depot "$depotId" -manifest "$manifestId" \ ${optionalString (fileList != []) "-filelist \"${fileListFile}\""} \ + ${optionalString (branch != null) "-branch \"${branch}\""} \ -username "$username" -password "$password" -dir "$out" rm -r "$out/.DepotDownloader" rm "$out/_steam_depot_manifest_$depotId.csv" -- cgit 1.4.1