From 8f17695ee65d2c4320365a0cef5a385b35770220 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sun, 1 Jun 2025 00:09:39 +0200 Subject: [PATCH] dsalkjdsalkj --- justfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index df37684..16e3743 100644 --- a/justfile +++ b/justfile @@ -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:-}"''