1 2 3 4 5 6 7 8
#!/usr/bin/env bash nix build -f default.nix "$@" if [[ $? != 0 ]] then echo ":: bild fail" echo ":: replaying the log..." PAGER=cat nix log -f default.nix "$@" fi