urbit/nix/ops/solid/builder.sh

32 lines
511 B
Bash
Raw Normal View History

2019-03-05 03:43:53 +03:00
source $stdenv/setup
set -ex
cp -r $PIER ./pier
chmod -R u+rw ./pier
2019-03-05 03:43:53 +03:00
$URBIT -d ./pier
2019-03-05 03:43:53 +03:00
cleanup () {
if [ -e ./pier/.vere.lock ]
then kill $(< ./pier/.vere.lock) || true;
2019-03-05 03:43:53 +03:00
fi
}
trap cleanup EXIT
herb ./pier -p hood -d '+hood/merge %stage our %home'
herb ./pier -p hood -d "+hood/mount /=stage="
rm -rf ./pier/stage
cp -r $ARVO ./pier/stage
chmod -R u+rw ./pier/stage
herb ./pier -p hood -d "+hood/commit %stage"
herb ./pier -P solid.pill -d '+solid /=stage=/sys, =dub &'
2019-03-05 03:43:53 +03:00
mv solid.pill $out
2019-03-05 03:43:53 +03:00
set +x