use flake attic-client on aarch64
This commit is contained in:
parent
09a2708033
commit
a2637c00a2
1 changed files with 6 additions and 1 deletions
|
@ -4,13 +4,18 @@
|
|||
config,
|
||||
system,
|
||||
attic,
|
||||
nix-packages,
|
||||
...
|
||||
}: let
|
||||
attic-client =
|
||||
if system == "aarch64-linux"
|
||||
then nix-packages.packages.${system}.attic-client
|
||||
else pkgs.attic-client;
|
||||
post-build-hook = pkgs.writeScript "post-build-hook" ''
|
||||
#!${pkgs.bash}/bin/bash
|
||||
set -euf
|
||||
export IFS=' '
|
||||
until ${pkgs.attic-client}/bin/attic push chir-rs $OUT_PATHS; do
|
||||
until ${attic-client}/bin/attic push chir-rs $OUT_PATHS; do
|
||||
sleep 5
|
||||
echo "Retrying..."
|
||||
done
|
||||
|
|
Loading…
Add table
Reference in a new issue