#!/usr/bin/env bash attr="$1" if nix-shell -A "$attr" --run true; then nix-build -A "$attr" else exit 125 fi