From 105e9efeebf318eb7135cf7d7300015b85dd69b8 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 21 May 2022 21:47:27 +0200 Subject: [PATCH] ci(nix): run nixpkgs-fmt asap --- .drone.starlark | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.drone.starlark b/.drone.starlark index 0fee2f3..135d936 100644 --- a/.drone.starlark +++ b/.drone.starlark @@ -28,6 +28,16 @@ def main(ctx): "nix --version" ] }, + { + "name": "nixpkgs-fmt", + "image": "docker.io/immawanderer/nix-nixpkgs-fmt:linux-amd64", + "pull": "always", + "depends_on": ["clone"], + "commands": [ + "nixpkgs-fmt --version || true", + "nixpkgs-fmt --check . || (echo 'run `nixpkgs-fmt .` to fix it' && exit 1)" + ] + }, { "name": "enable flakes", "image": "docker.io/nixos/nix:2.8.0-amd64", @@ -87,16 +97,6 @@ def main(ctx): "cat /etc/nix/nix.conf" ] }, - { - "name": "nixpkgs-fmt", - "image": "docker.io/immawanderer/nix-nixpkgs-fmt:linux-amd64", - "pull": "always", - "depends_on": ["pull nix"], - "commands": [ - "nixpkgs-fmt --version || true", - "nixpkgs-fmt --check . || (echo 'run `nixpkgs-fmt .` to fix it' && exit 1)" - ] - }, { "name": "statix", "image": "docker.io/immawanderer/nix-statix:linux-amd64",