mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 19:22:22 +03:00
27 lines
537 B
Bash
Executable File
27 lines
537 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
fail () {
|
|
echo "$@"
|
|
exit 1
|
|
}
|
|
|
|
if [ -z "$CACHIX_SIGNING_KEY" ]
|
|
then fail "The CACHIX_AUTH_TOKEN environment variable needs to be set."
|
|
fi
|
|
|
|
if [ -z "$CACHIX_AUTH_TOKEN" ]
|
|
then fail "The CACHIX_AUTH_TOKEN environment variable needs to be set."
|
|
fi
|
|
|
|
cleanup () {
|
|
rm -f .cache.list
|
|
}
|
|
|
|
trap cleanup EXIT
|
|
|
|
cachix authtoken "$CACHIX_AUTH_TOKEN" >/dev/null
|
|
cachix use urbit2
|
|
nix-build --no-out-link nix/dep-repos.nix > .cache.list
|
|
nix-build --no-out-link default.nix >> .cache.list
|
|
cachix push urbit2 < .cache.list
|