#!/usr/bin/env bash set -ex prefix=$(echo $PWD | sed -e "s|^$BIZ_ROOT/*||g" -e "s|/|.|g") if [[ "$prefix" == "" ]] then target="$1" else target="$prefix.$1" fi nix build -o "$BIZ_ROOT/_bild/$target" \ -f $BIZ_ROOT/default.nix "$target" --show-trace