Skip to content

Commit 0c97958

Browse files
committed
add formatting job to Nix CI and define fmt shell in flake.nix
1 parent 4527443 commit 0c97958

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/nix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ jobs:
8383
nix fmt -- --ci .
8484
- name: Check cargo formatting
8585
run: |
86-
nix develop . -c cargo fmt --check
86+
nix develop .#fmt -c cargo fmt --check

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@
8989
RUST_SRC_PATH = "${rustPlatform.rustLibSrc}";
9090
}
9191
);
92+
fmt = mkShell {
93+
packages = [
94+
rustPlatform.rust.cargo
95+
];
96+
};
9297
};
9398

9499
}

0 commit comments

Comments
 (0)