flake: add rustfmt checks
This commit is contained in:
parent
65dbe44999
commit
c17650dafc
|
@ -124,6 +124,8 @@
|
||||||
inherit cargoArtifacts;
|
inherit cargoArtifacts;
|
||||||
cargoClippyExtraArgs = "-- --deny warnings";
|
cargoClippyExtraArgs = "-- --deny warnings";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
rustfmt = craneLib.cargoFmt (commonArgs // { inherit cargoArtifacts; });
|
||||||
};
|
};
|
||||||
|
|
||||||
stubCrane = buildRustApp {
|
stubCrane = buildRustApp {
|
||||||
|
@ -174,6 +176,8 @@
|
||||||
checks = {
|
checks = {
|
||||||
toolClippy = toolCrane.clippy;
|
toolClippy = toolCrane.clippy;
|
||||||
stubClippy = stubCrane.clippy;
|
stubClippy = stubCrane.clippy;
|
||||||
|
toolFmt = toolCrane.rustfmt;
|
||||||
|
stubFmt = stubCrane.rustfmt;
|
||||||
} // (import ./nix/tests/lanzaboote.nix {
|
} // (import ./nix/tests/lanzaboote.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
lanzabooteModule = self.nixosModules.lanzaboote;
|
lanzabooteModule = self.nixosModules.lanzaboote;
|
||||||
|
|
Loading…
Reference in New Issue