1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 04:27:45 +00:00

feat: format toml

This commit is contained in:
Kevin Amado 2022-01-30 13:26:52 -05:00
parent c07a964d8a
commit 59c879aedb
No known key found for this signature in database
GPG key ID: FFF341057F503148
5 changed files with 194 additions and 66 deletions

View file

@ -1,12 +1,17 @@
{
inputs = {
alejandra.url = "github:kamadorueda/alejandra";
fenix.url = "github:nix-community/fenix";
fenix.inputs.nixpkgs.follows = "nixpkgs";
fenix.inputs.rust-analyzer-src.follows = "rustAnalyzerSrc";
flakeCompat.url = github:edolstra/flake-compat;
flakeCompat.flake = false;
flakeUtils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
rustAnalyzerSrc.url = "github:rust-analyzer/rust-analyzer";
rustAnalyzerSrc.flake = false;
treefmt.url = "github:numtide/treefmt";
treefmt.inputs.flake-utils.follows = "flakeUtils";
treefmt.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
@ -57,11 +62,16 @@
fenix.latest.rust-src
fenix.latest.rustc
fenix.latest.rustfmt
treefmt
nixpkgs.shfmt
inputs.alejandra.outputs.defaultPackage.${ system }
nixpkgs.jq
nixpkgs.nodePackages.prettier
nixpkgs.shfmt
treefmt
];
shellHook = "cargo build";
shellHook =
''
export NODE_PATH=${ nixpkgs.nodePackages.prettier-plugin-toml }/lib/node_modules:$NODE_PATH
'';
};
}
);