Skip to content

Commit 9af53fb

Browse files
committed
WIP script for debugign gthe build of emacs
1 parent 56ffd0d commit 9af53fb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

run-debugging-process.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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" &

0 commit comments

Comments
 (0)