Create a minimal shell derivation for the check-fmt script

This commit is contained in:
adisbladis 2021-08-11 18:17:34 -05:00
parent 22d8700153
commit 87c1561b47
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,5 @@
#!/usr/bin/env nix-shell
#!nix-shell ./shell.nix -i bash
#!nix-shell ./check-fmt.nix -i bash
#
# Just because the nixpkgs-fmt error message is not super readable. Used by
# CI.

7
check-fmt.nix Normal file
View file

@ -0,0 +1,7 @@
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
in
pkgs.mkShell {
nativeBuildInputs = [ pkgs.nixpkgs-fmt ];
}