r/linuxsucks • u/al2klimov • 22h ago
Linux Failure I wanted a disk usage browser. The oldest, most solved, most boring problem in computing. du with a TUI. Software your grandfather's grandfather could've written in a weekend in 1987.
nix-shell -p ncdu responds by announcing it would like to build clang. From source. Why? Because ncdu, famous disk-space tool, is now written in Zig. And Zig needs its own LLVM toolchain to bootstrap itself. And my ARM box's channel — the "small" one, chosen specifically so security patches land fast — has apparently never once been asked to build clang-22 for aarch64 by anyone in the history of the project. So it builds one. Just for me. Personally. For forty-five minutes. So I can see that /var/log is 80% full.
The fix, naturally, could not be "install ncdu" like some kind of savage. The fix was: write a Nix overlay. Reach into an entirely separate, parallel copy of all of nixpkgs fetched from a different URL, purely to extract one (1) package from it, and splice that single package into my live system like a kidney transplant. This is now a permanent fixture of my mail server's configuration, sitting there forever, because upstream's disk-usage tool and my choice of update cadence had an irreconcilable falling-out over compiler toolchains.
I did not sign up to personally operate a bespoke LLVM supply chain so a du clone can render a pie chart in my terminal. I wanted to know if I was out of space. I am now, however, out of patience, out of free afternoons, and apparently out of any sane way to just install a program.
