aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/mkdepot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'srcds-pkgs/mkdepot.nix')
-rw-r--r--srcds-pkgs/mkdepot.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/srcds-pkgs/mkdepot.nix b/srcds-pkgs/mkdepot.nix
index 26d364b..f9b0f54 100644
--- a/srcds-pkgs/mkdepot.nix
+++ b/srcds-pkgs/mkdepot.nix
@@ -13,7 +13,11 @@ let
ln -s '${drv}' $out/'${FileName}'
'';
emitManifest = cache: with cache.passthru; let
- json = "${cache}/.DepotDownloader/${toString depot}_${manifest}.json";
+ sillyPathComponent = if lib.versionAtLeast depotdownloader.version "3.1.0" then
+ "manifest_"
+ else
+ ".DepotDownloader/";
+ json = "${cache}/${sillyPathComponent}${toString depot}_${manifest}.json";
mkStep = file: emitStep (file // { inherit cache; });
in concatMapStrings mkStep (importJSON json).Files;
in runCommand name {} ''