Add script to build locally

This commit is contained in:
Charlotte Van Petegem 2020-07-12 16:03:22 +02:00
parent ea59226266
commit 65147dc352
2 changed files with 10 additions and 2 deletions

View file

@ -2,11 +2,18 @@
set -euo pipefail
set -x
if [ -z "$NO_REMOTE" ]
then
remote_args="--builders 'ssh://charlotte@sunspear.vanpetegem.me' --extra-substituters 'ssh://charlotte@sunspear.vanpetegem.me'"
else
remote_args=""
fi
nix-build \
--no-out-link \
--pure \
--builders 'ssh://charlotte@sunspear.vanpetegem.me' \
--extra-substituters 'ssh://charlotte@sunspear.vanpetegem.me' \
$remote_args \
"${@}"
exit 0

1
localbuild.sh Executable file
View file

@ -0,0 +1 @@
NO_REMOTE=true ./build.sh $@