{ lib, runCommand , depotdownloader, cacert }: { app, depot, manifest, hash }: let app' = builtins.toString app; depot' = builtins.toString depot; in runCommand "depotcache-${manifest}" { nativeBuildInputs = [ depotdownloader cacert ]; outputHashMode = "recursive"; outputHashAlgo = null; outputHash = hash; passthru = { inherit app depot manifest; }; } '' mkdir -p $out export HOME=$out cd $out DepotDownloader \ -app ${app'} \ -depot ${depot'} \ -manifest ${manifest} \ -filelist /dev/null \ -dir . rm -rf .local ''