`nix copy` displays outrageously big numbers

I know for a fact that this is not true, as it’s a ~14G closure that I’m copying…

Did someone forget to divide by 1024???

> nix --version                               
nix (Nix) 2.24.12
3 Likes

Yep, I know that one. On top of that, it’s also excruciatingly slow, often getting only around 20-30MBit/s on a wired GBit network.

image

1 Like

A well known issue since 2.15 (or even longer).

PR #12336 is meant to fix this as far as I understand. It will not land before nix 2.28 though.

The PR was backported, so I don’t see why it couldn’t get fixed earlier (in the next point release of 2.24).

Oh, indeed, though I only find a backport to 2.26.

libstore: Fix progress bars (backport #12336) by mergify[bot] · Pull Request #12344 · NixOS/nix · GitHub appears to be the 2.24 backport.

1 Like

Ah, that makes sense. Thank you for the explanation. I’ll just mark you as solution because otherwise this thread will keep unsolved :sweat_smile:

So I guess you can prematurely fix this by using unstable and then in NixOS specifying nix.package = pkgs.nixVersions.latest;?

No, you’d use nixVersions.nix_2_26 (latest is older.)
But nix 2.26 has a lot of breaking changes, so it seems like absolute overkill just to fix a visual bug.

1 Like