4 # lua54 implies lua52/lua53
5 , features ? [ "lua54" "luau" ]
8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
13 owner = "johnnymorganz";
16 sha256 = "sha256-bqUmLtJLjImWqe06CeIWIU4FP+/Vxszp2yKMosVeyZM=";
19 cargoHash = "sha256-EMHt9oskPJCeAu/5VG6PaMt/4NTmNOaFTM5TMOy0BV8=";
21 # remove cargo config so it can find the linker on aarch64-unknown-linux-gnu
26 buildFeatures = features;
29 description = "An opinionated Lua code formatter";
30 homepage = "https://github.com/johnnymorganz/stylua";
31 changelog = "https://github.com/johnnymorganz/stylua/blob/v${version}/CHANGELOG.md";
32 license = licenses.mpl20;
33 maintainers = with maintainers; [ figsoda ];
34 mainProgram = "stylua";