about summary refs log tree commit diff
path: root/users/tazjin/default.nix
blob: 8359b2de327597efb2e1d861fc3401f0d777c24f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# //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 (_: {
  # rustfmt not respecting config atm, disable
  meta.ci.skip = true;

  meta.ci.extraSteps.rustfmt = {
    command = rustfmt;
  };
})