File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ set -xu
4+
5+ LOG_DIR=" build-log-$( date | sed ' s/ /-/g' ) "
6+ mkdir -p $LOG_DIR
7+ BUILD_LOG=" $LOG_DIR /flake-build.log"
8+ REQUISITES_LOG=" $LOG_DIR /requisites.log"
9+ STRAIGHT_LOG=" $LOG_DIR /straight-emacs-env.log"
10+
11+ bash bin/home-manager-flake-switch.sh > " $BUILD_LOG " 2>&1
12+ DERIVATION_PATH=$( nix path-info ~ /workstation/# homeConfigurations.${WORKSTATION_NAME}.$(whoami).activationPackage)
13+
14+ nix-store --query --requisites --include-outputs " $DERIVATION_PATH " > " $REQUISITES_LOG "
15+
16+ STRAIGHT_ENV_PATH=$( grep straight-emacs-env requisites.txt | tail -n 1)
17+ nix log " $STRAIGHT_ENV_PATH " > " $STRAIGHT_LOG "
18+ echo " ============= STRAIGHT_LOG ==========="
19+ cat " $STRAIGHT_LOG "
20+ echo LOGS STORED TO " $LOG_DIR "
21+
22+ dialog.sh " workstation build finished" &
You can’t perform that action at this time.
0 commit comments