lkjdsalkjdsalkj

This commit is contained in:
2025-03-24 16:56:52 +01:00
parent 718a03118c
commit f415ec2a02
2 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,4 @@
*
!/justfile
!/.gitignore
!/clean.sh
!/.envrc

View File

@@ -135,7 +135,7 @@ instantiate-packages +$attrpaths="":
[no-cd]
_build_packages $outdir +$attrpaths:
#!/usr/bin/env -S bash -euo pipefail
#!/usr/bin/env -S bash -euo pipefail -x
# hint: supports _JUST_NIX_BUILD_ARGS
# hint: supports _JUST_NIX_INSTANTIATE_ARGS
test -z "${_JUST_NIX_BUILD_ARGS:-}" || echo >&2 "_JUST_NIX_BUILD_ARGS = $_JUST_NIX_BUILD_ARGS"
@@ -151,6 +151,7 @@ _build_packages $outdir +$attrpaths:
just instantiate-packages "$@" | tee >(command cat >&2) \
| eval xargs nom-build --keep-going --no-out-link ${_JUST_NIX_BUILD_ARGS:-}
worker() {
set -x
local attrpath="$1"
local dst="$outdir/$attrpath"
local drvpath=$( just instantiate-packages "$attrpath" )
@@ -160,13 +161,13 @@ _build_packages $outdir +$attrpaths:
fi
# local outpaths=$( nix-store -q --outputs "$drvpath" ) # doesn't gcroot, some outputs may not be pulled from builders
if [[ -L "$dst" ]]; then
nix log $(readlink "$dst") > "$dst".log 2>/dev/null
nix log $(readlink "$dst") > "$dst".log 2>/dev/null ||:
else
if [[ -z "$drvpath" ]]; then
ln -s "$NOTFOUNDDIR"/no-eval "$dst"
else
ln -s /build-failure-"$attrpath" "$dst"
nix log ".#$attrpath" ${_JUST_NIX_INSTANTIATE_ARGS:-} > "$dst".log 2>/dev/null || true
nix log ".#$attrpath" ${_JUST_NIX_INSTANTIATE_ARGS:-} > "$dst".log 2>/dev/null ||:
fi
fi
}