nixos-config/ci/upload-to-cache.sh
2025-04-20 01:39:56 -04:00

9 lines
325 B
Bash
Executable file

#!/bin/sh
# https://nix.dev/guides/recipes/post-build-hook.html#implementing-the-build-hook
set -eu
set -f # disable globbing
export IFS=' '
echo "Uploading paths" $OUT_PATHS
# this is where the cachix installer installs nix
exec /nix/var/nix/profiles/default/bin/nix copy --to "s3://nixcache?endpoint=s3.cy7.sh" $OUT_PATHS