diff options
author | Thomas Mühlbacher <tmuehlbacher@posteo.net> | 2024-05-27 17:04:24 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-27 19:30:26 -0400 |
commit | ce01c61ba5e7f272b5d18ae5a46f108dd569c0f4 (patch) | |
tree | 0a3626c89fe72934e691a71747afc6ec45c765cf /flake.lock | |
parent | 0e414b462f97c29b79e92318c48073adeba59675 (diff) |
build(nix): enable rustfmt check+formatter
with this, the gh actions ci will fail if submitted code does not adhere
to rustfmt rules.
additionally, running `nix fmt` will also format rust code.
because we want rules only supported by nightly rustfmt, and nixpkgs
doesn't have a nightly toolchain, we need to pull in another flake
input: fenix.
Diffstat (limited to 'flake.lock')
-rw-r--r-- | flake.lock | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -1,5 +1,26 @@ { "nodes": { + "fenix": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "rust-analyzer-src": "rust-analyzer-src" + }, + "locked": { + "lastModified": 1716791293, + "narHash": "sha256-zxFADJsXhODHH9rrF7gXjN+BYVkMoNY2NpLyjGQDOJA=", + "owner": "nix-community", + "repo": "fenix", + "rev": "9af557bccdfa8fb6a425661c33dbae46afef0afa", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "fenix", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -64,12 +85,30 @@ }, "root": { "inputs": { + "fenix": "fenix", "flake-compat": "flake-compat", "flake-parts": "flake-parts", "nixpkgs": "nixpkgs", "treefmt-nix": "treefmt-nix" } }, + "rust-analyzer-src": { + "flake": false, + "locked": { + "lastModified": 1716714715, + "narHash": "sha256-xJ5vzVr5Et6wxHRQLOYicsa0gN2bwm4mj6AFHc8ugJc=", + "owner": "rust-lang", + "repo": "rust-analyzer", + "rev": "71a816a90facb6546a0a06010da17598e11812f7", + "type": "github" + }, + "original": { + "owner": "rust-lang", + "ref": "nightly", + "repo": "rust-analyzer", + "type": "github" + } + }, "treefmt-nix": { "inputs": { "nixpkgs": [ |