shrub/nix/ops/brass/builder.sh

23 lines
270 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 brass.pill -d '+brass'
2019-03-05 03:43:53 +03:00
mv brass.pill $out
set +x