Try rustfmt in nix

This commit is contained in:
Alex 2022-12-02 12:32:25 +01:00
parent 15ab38cdb6
commit 32a0d5e148
Signed by untrusted user: lx
GPG key ID: 0E496D15096376BE

View file

@ -6,10 +6,12 @@ node:
nix-daemon: 1
steps:
#- name: check formatting
# image: nixpkgs/nix:nixos-22.05
# commands:
# - nix run --extra-experimental-features nix-command --extra-experimental-features flakes github:nixos/nixpkgs/nixos-22.05#cargo fmt -- --check
- name: check formatting
image: nixpkgs/nix:nixos-22.05
environment:
NIX_PATH: 'nixpkgs=channel:nixos-22.05'
commands:
- nix-shell -p cargo -p rustfmt --run 'cargo fmt -- --check'
- name: build
image: nixpkgs/nix:nixos-22.05