diff options
author | aszlig <aszlig@redmoonstudios.org> | 2016-03-12 00:45:12 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2016-03-15 04:55:48 +0100 |
commit | 4c1051225a1bc99f3bab8512e26c221e860565f0 (patch) | |
tree | 6699deb30646b8af3b82801c83b017b15fa59093 /pkgs/games/steam/fetchsteam | |
parent | ea545929d8bddf27905fe4e88da296a21e4dff05 (diff) |
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/games/steam/fetchsteam')
-rw-r--r-- | pkgs/games/steam/fetchsteam/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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" |