2022-02-07 17:29:52 +01:00
|
|
|
# //users/tazjin-specific CI configuration.
|
|
|
|
{ pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
rustfmt = pkgs.writeShellScript "rustfmt-tazjin" ''
|
|
|
|
${pkgs.fd}/bin/fd -e rs | \
|
|
|
|
${pkgs.ripgrep}/bin/rg 'users/tazjin' | \
|
|
|
|
xargs ${pkgs.rustfmt}/bin/rustfmt --check --config-path users/tazjin
|
|
|
|
'';
|
|
|
|
|
|
|
|
in
|
|
|
|
rustfmt.overrideAttrs (_: {
|
2022-03-31 18:40:08 +02:00
|
|
|
# rustfmt not respecting config atm, disable
|
|
|
|
meta.ci.skip = true;
|
|
|
|
|
2022-02-07 17:29:52 +01:00
|
|
|
meta.ci.extraSteps.rustfmt = {
|
|
|
|
command = rustfmt;
|
|
|
|
};
|
|
|
|
})
|