Some new features like test_dependencies/build_dependencies and flags ( --lua-versions) that should make nix integration easier: https://github.com/luarocks/luarocks/blob/master/CHANGELOG.md
The sw_vers binary is not part of the stdenv and it would make builds impure based on what macOS version they where built on.