So it can be reused by `hnix` and `nix-diff`. Related to https://github.com/haskell-nix/hnix/pull/903 and https://github.com/Gabriella439/nix-diff/pull/79#issuecomment-1818383958