diff --git a/flakes-tools/scripts/cache-devshells.fish b/flakes-tools/scripts/cache-devshells.fish index bb768d25..04f1b45c 100644 --- a/flakes-tools/scripts/cache-devshells.fish +++ b/flakes-tools/scripts/cache-devshells.fish @@ -6,7 +6,7 @@ set t $( nix flake show --json | jq -r --arg cur_sys "$CURRENT_SYSTEM" '.devShel if test -n "$t" # build devshells - printf "%s\n" $t | xargs -I {} nix build .#devShells."$CURRENT_SYSTEM".{} + printf "%s\n" $t | xargs -I {} nix build .#devShells."$CURRENT_SYSTEM".{} --print-out-paths | xargs -I {} nix-store --add-root {} --realise # save profiles for these devshells printf "%s\n" $t | xargs -I {} nix develop .#{} --profile $PROFILES_FOR_DEVSHELLS/{} # push profiles for these devshells