Add a comment explaining why we need the 'check' attribute
This commit is contained in:
parent
b65926620e
commit
82e7ee3aac
1 changed files with 5 additions and 3 deletions
|
@ -89,14 +89,16 @@
|
|||
];
|
||||
};
|
||||
|
||||
# To run these checks locally:
|
||||
# nix build .#check.x86_64-linux
|
||||
# (Replace with your system)
|
||||
checks = {
|
||||
format-haskell = inputs.lint-utils.linters.${system}.${haskellFormatter} ./.;
|
||||
format-cabal = inputs.lint-utils.linters.${system}.cabal-fmt ./.;
|
||||
format-nix = inputs.lint-utils.linters.${system}.nixpkgs-fmt ./.;
|
||||
};
|
||||
|
||||
# We needs this hack because `nix flake check` won't work for Haskell
|
||||
# projects: https://nixos.wiki/wiki/Import_From_Derivation#IFD_and_Haskell
|
||||
#
|
||||
# Instead, run: `nix build .#check.x86_64-linux` (replace with your system)
|
||||
check =
|
||||
pkgs.runCommand "combined-checks"
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue