fix: Nix: better stage 0 detection
This commit is contained in:
parent
b12be950bf
commit
73ae39313d
1 changed files with 2 additions and 2 deletions
|
|
@ -42,8 +42,8 @@ done
|
|||
[[ "$root" == / ]] && root="@srcRoot@"
|
||||
deps="$(echo -n "$input" | nix run "$root#print-lean-deps" 2> /dev/null)"
|
||||
attrPath="check-mod"
|
||||
# HACK: use stage 0 instead of 0 inside Lean's own `src/`
|
||||
[[ -d "$root/src/Lean" && "$inputFile" == "$root/src/"* ]] && attrPath="stage0check-mod"
|
||||
# HACK: use stage 0 instead of 1 inside Lean's own `src/`
|
||||
[[ -d "$root/src/Lean" && "$(realpath "$inputFile")" == "$root/src/"* ]] && attrPath="stage0check-mod"
|
||||
for dep in $deps; do
|
||||
attrPath="$attrPath.\"$dep\""
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue