diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-02 12:32:25 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-02 12:34:45 +0100 |
commit | 32a0d5e14863b39e9a46b6ed4593b2dffe110add (patch) | |
tree | 0cb4af215895dcacb0a03e0770ac18c6bc4bd836 | |
parent | 15ab38cdb6a64a619fbebfbce68b8d9bb01ebb61 (diff) | |
download | tricot-32a0d5e14863b39e9a46b6ed4593b2dffe110add.tar.gz tricot-32a0d5e14863b39e9a46b6ed4593b2dffe110add.zip |
Try rustfmt in nix
-rw-r--r-- | .drone.yml | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |