scroll auto discovery
This commit is contained in:
parent
60b5164a8a
commit
8769d9de00
9 changed files with 44 additions and 20 deletions
19
nix/deno/makeShelfSetup.nix
Normal file
19
nix/deno/makeShelfSetup.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ self }:
|
||||
{ pkgs, sharedCache }:
|
||||
|
||||
pkgs.writeShellScript "deno-shelf-setup" ''
|
||||
export DENO_DIR=$PWD/.deno_cache
|
||||
|
||||
if [ ! -d "$DENO_DIR" ] || [ "${sharedCache}" -nt "$DENO_DIR/.cache_timestamp" ]; then
|
||||
echo "Setting up shared Deno cache..."
|
||||
|
||||
rm -rf "$DENO_DIR"
|
||||
cp -r "${sharedCache}" "$DENO_DIR"
|
||||
chmod -R u+w "$DENO_DIR"
|
||||
|
||||
touch "$DENO_DIR/.cache_timestamp"
|
||||
echo "Shared Deno cache initialized"
|
||||
else
|
||||
echo "Deno cache is up to date"
|
||||
fi
|
||||
''
|
||||
Loading…
Add table
Add a link
Reference in a new issue