It seems that the main problem here is not that xz
(the program) is included in stdenv
, but that the xz
binary in stdenv
is provided by the same derivation that provides liblzma
.
I wonder, if it would be possible to make stdenv
only expose the binary build tools, without exposing the associated libraries. That way, in the future we could first quickly update liblzma
(rebuilding only the packages that actually link to it via buildInputs
etc) and then update the xz
binary used by stdenv
at a later date.