diff options
| author | yuuko <yuuko@partyvan.io> | 2026-01-03 16:58:11 -0800 |
|---|---|---|
| committer | yuuko <yuuko@partyvan.io> | 2026-01-03 16:59:00 -0800 |
| commit | 4b5c998b512eba49eebfb1005d0f9340d29b332d (patch) | |
| tree | f3eeab9daa6f97fb1f78871785d414090ef12235 /srcds-pkgs/mkdepot.nix | |
| parent | c5bd862c3ad07c6c8a73c38eb399f538f3f22b34 (diff) | |
mkDepot, fetchDepotCache: appropriately invoke new depotdownloader
Diffstat (limited to 'srcds-pkgs/mkdepot.nix')
| -rw-r--r-- | srcds-pkgs/mkdepot.nix | 6 |
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 {} '' |
