Add a .#check
package for building all checks for the current system
Due to IFD, commands like nix flake check
simply will not work on certain projects (like Haskell projects) whose flake supports multiple systems. For details, see NixOS/nix#3843.
To work around this, this flake module will add package that wraps all the checks. You can then run the checks as:
nix build .#check --no-link -L
You should probably use one of the following instead of check-flake
.
systems
as an (overridable) flake input: https://github.com/nix-systems/nix-systems- https://github.com/srid/devour-flake