File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{ pkgs , flake , ... } :
22
33pkgs . runCommand "lint-code"
4- { nativeBuildInputs = with pkgs ; [ nixpkgs-fmt deadnix statix ] ; } ''
5- deadnix --fail ${ flake }
6- #statix check ${ flake } # https://github.com/nerdypepper/statix/issues/75
7- nixpkgs-fmt --check ${ flake }
8- touch $out
9- ''
4+ {
5+ nativeBuildInputs = with pkgs ; [
6+ nixfmt
7+ deadnix
8+ statix
9+ ] ;
10+ }
11+ ''
12+ deadnix --fail ${ flake }
13+ #statix check ${ flake } # https://github.com/nerdypepper/statix/issues/75
14+ nixfmt --check ${ flake }
15+ touch $out
16+ ''
Original file line number Diff line number Diff line change 22
33pkgs . writeShellApplication {
44 name = "normalise_nix" ;
5- runtimeInputs = with pkgs ; [ nixpkgs-fmt statix ] ;
5+ runtimeInputs = with pkgs ; [
6+ nixfmt
7+ statix
8+ ] ;
69 text = ''
710 set -o xtrace
8- nixpkgs-fmt "$@"
11+ nixfmt "$@"
912 statix fix "$@"
1013 '' ;
1114}
You can’t perform that action at this time.
0 commit comments