dsalkjdsalkj

This commit is contained in:
2025-06-01 00:09:39 +02:00
parent b6a2607bbb
commit 8f17695ee6
+6 -3
View File
@@ -246,7 +246,7 @@ instantiate-packages-extra-suffixes +$attrpaths="":
just instantiate-packages "${selected_attrpaths[@]}"
[no-cd]
_instantiate_packages $system +$attrpaths:
_instantiate_packages $systems +$attrpaths:
#!/usr/bin/env -S bash -euo pipefail
# slower than normal nix-instantiate, but handles bad attrpaths, TODO: parallel eval?
# supports envvar _JUST_NIX_INSTANTIATE_CACHE
@@ -266,8 +266,11 @@ _instantiate_packages $system +$attrpaths:
| tee "$_JUST_NIX_INSTANTIATE_CACHE/paths/$attrpath.drv"
fi
}
printf "%s\n" "${attrpaths[@]}" | grep . | \
xe -j0 -s "$(declare -f worker); worker \"\$@\""
for system in $systems; do
export system
printf "%s\n" "${attrpaths[@]}" | grep . | \
xe -j0 -s "$(declare -f worker); worker \"\$@\""
done
else
printf "%s\n" "${attrpaths[@]}" | grep . | \
xe -j0 -s 'NIXPKGS_ALLOW_UNFREE=1 nix-instantiate . -A "$1" --system "$system" '"${_JUST_NIX_INSTANTIATE_ARGS:-}"''