ci(nix): run nixpkgs-fmt asap
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-05-21 21:47:27 +02:00
parent b7e81edbbe
commit 105e9efeeb
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -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",