This repository has been archived on 2024-10-13. You can view files and clone it, but cannot push or open issues or pull requests.
nix-packages/scripts/post-build-hook

7 lines
272 B
Text
Raw Normal View History

2022-11-15 16:33:25 +00:00
#!/bin/sh
set -euf
export IFS=' '
2022-11-15 16:54:22 +00:00
nix store sign --key-file $HOME/cache.key $DRV_PATH
nix copy --to "s3://cache-chir-rs?scheme=https&endpoint=s3.us-west-000.backblazeb2.com&secret-key=$HOME/cache.key&multipart-upload=true&compression=zstd&compression-level=15" $DRV_PATH
2022-11-15 16:33:25 +00:00