Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142{ lib, rustPlatform, fetchFromGitHub, # lua54 implies lua52/lua53 features ? [ "lua54" "luajit" "luau" ],}:
rustPlatform.buildRustPackage rec { pname = "stylua"; version = "2.1.0";
src = fetchFromGitHub { owner = "johnnymorganz"; repo = "stylua"; rev = "v${version}"; sha256 = "sha256-yVie8/aey77WbeUGM6rzuKBKLmAH1Jhhj9Y7LxbvIUw="; };
cargoHash = "sha256-ow8lldu36qBHcXFgeBhHo2u+sSAFCEFbxUk2oZI7sj4=";
# remove cargo config so it can find the linker on aarch64-unknown-linux-gnu postPatch = '' rm .cargo/config.toml '';
buildFeatures = features;
meta = { description = "Opinionated Lua code formatter"; homepage = "https://github.com/johnnymorganz/stylua"; changelog = "https://github.com/johnnymorganz/stylua/blob/v${version}/CHANGELOG.md"; license = lib.licenses.mpl20; maintainers = with lib.maintainers; [ figsoda ]; mainProgram = "stylua"; };}