Add script to build locally
This commit is contained in:
parent
ea59226266
commit
65147dc352
2 changed files with 10 additions and 2 deletions
11
build.sh
11
build.sh
|
@ -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
1
localbuild.sh
Executable file
|
@ -0,0 +1 @@
|
|||
NO_REMOTE=true ./build.sh $@
|
Loading…
Add table
Add a link
Reference in a new issue