From 32a0d5e14863b39e9a46b6ed4593b2dffe110add Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 2 Dec 2022 12:32:25 +0100 Subject: [PATCH] Try rustfmt in nix --- .drone.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2d46192..88dd362 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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