Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/srid/check-flake
Add a `.#check` package for building all checks for the current system
https://github.com/srid/check-flake
flake-parts nix
Last synced: 4 months ago
JSON representation
Add a `.#check` package for building all checks for the current system
- Host: GitHub
- URL: https://github.com/srid/check-flake
- Owner: srid
- License: mit
- Created: 2022-08-28T21:49:34.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-02T23:34:23.000Z (almost 2 years ago)
- Last Synced: 2024-08-03T15:07:40.777Z (6 months ago)
- Topics: flake-parts, nix
- Language: Nix
- Homepage:
- Size: 6.84 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# check-flake
Add a `.#check` package for building all checks for the current system
## Why?
[Due to IFD](https://nixos.wiki/wiki/Haskell#IFD_and_Haskell), commands like `nix flake check` simply will not work on certain projects (like [Haskell](https://github.com/srid/haskell-flake) projects) whose flake supports multiple systems. For details, see https://github.com/NixOS/nix/issues/3843.
To work around this, this flake module will add package that wraps all the checks. You can then run the checks as:
```sh
nix build .#check --no-link -L
```## Alternative approaches
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