My Nix Configuration
1{ pkgs, lib, ... }: 2pkgs.stdenvNoCC.mkDerivation { 3 name = "formatting-check"; 4 src = lib.snowfall.fs.get-file "/"; 5 dontBuild = true; 6 doCheck = true; 7 nativeBuildInputs = with pkgs; [ 8 nixfmt-rfc-style 9 deadnix 10 statix 11 ]; 12 checkPhase = '' 13 deadnix 14 statix check . 15 nixfmt --check . 16 ''; 17 installPhase = ''mkdir "$out"''; 18}