Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<p align="right">
<a href="https://dendritic.oeiuwq.com/sponsor"><img src="https://img.shields.io/badge/sponsor-vic-white?logo=githubsponsors&logoColor=white&labelColor=%23FF0000" alt="Sponsor Vic"/>
<a href="https://dendritic.oeiuwq.com/sponsor"><img src="https://img.shields.io/badge/sponsor-denful-white?logo=githubsponsors&logoColor=white&labelColor=%23FF0000" alt="Sponsor Vic"/>
</a>
<a href="https://dendritic.oeiuwq.com"> <img src="https://img.shields.io/badge/Dendritic-Nix-informational?logo=nixos&logoColor=white" alt="Dendritic Nix"/> </a>
<a href="LICENSE"> <img src="https://img.shields.io/github/license/vic/checkmate" alt="License"/> </a>
<a href="https://github.com/vic/checkmate/actions">
<img src="https://github.com/vic/checkmate/actions/workflows/test.yml/badge.svg" alt="CI Status"/> </a>
<a href="LICENSE"> <img src="https://img.shields.io/github/license/denful/checkmate" alt="License"/> </a>
<a href="https://github.com/denful/checkmate/actions">
<img src="https://github.com/denful/checkmate/actions/workflows/test.yml/badge.svg" alt="CI Status"/> </a>
</p>

# Checkmate - A Dendritic flake checker (treefmt & nix-unit) for testing other flakes with zero dependencies.

> `checkmate` and [vic](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)
> `checkmate` and [denful](https://bsky.app/profile/oeiuwq.bsky.social)'s [dendritic libs](https://dendritic.oeiuwq.com) made for you with Love++ and AI--. If you like my work, consider [sponsoring](https://dendritic.oeiuwq.com/sponsor)

### Checks included by default

Expand All @@ -25,23 +25,23 @@ Checkmate is a collection of Dendritic modules.

```shell
# Generate a new project including github CI action
nix flake new -t github:vic/checkmate
nix flake new -t github:denful/checkmate
```

### Running flake check locally

```console
nix flake check github:vic/checkmate --override-input target .
nix flake check github:denful/checkmate --override-input target .
```

### Running treefmt on your code

```console
# formatting your code
nix run github:vic/checkmate#fmt --override-input target .
nix run github:denful/checkmate#fmt --override-input target .

# checking if code is formatted
nix run github:vic/checkmate#fmt --override-input target . -- --ci
nix run github:denful/checkmate#fmt --override-input target . -- --ci
```

### CI Usage
Expand All @@ -58,14 +58,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v30
- run: nix flake check -L github:vic/checkmate --override-input target github:$GITHUB_REPOSITORY/$GITHUB_SHA
- run: nix flake check -L github:denful/checkmate --override-input target github:$GITHUB_REPOSITORY/$GITHUB_SHA
```

### Examples

Some repos being tested with `checkmate`:

- https://github.com/vic/checkmate
- https://github.com/vic/import-tree
- https://github.com/vic/flake-aspects
- https://github.com/vic/den
- https://github.com/denful/checkmate
- https://github.com/denful/import-tree
- https://github.com/denful/flake-aspects
- https://github.com/denful/den
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file.
# DO-NOT-EDIT. This file was auto-generated using github:denful/flake-file.
# Use `nix run .#write-flake` to regenerate it.
{

outputs = inputs: inputs.flake-parts.lib.mkFlake { inherit inputs; } (inputs.import-tree ./modules);

inputs = {
flake-file.url = "github:vic/flake-file";
flake-file.url = "github:denful/flake-file";
flake-parts = {
inputs.nixpkgs-lib.follows = "nixpkgs-lib";
url = "github:hercules-ci/flake-parts";
};
import-tree.url = "github:vic/import-tree";
import-tree.url = "github:denful/import-tree";
nix-unit = {
inputs = {
flake-parts.follows = "flake-parts";
Expand All @@ -21,7 +21,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-lib.follows = "nixpkgs";
systems.url = "github:nix-systems/default";
target.url = "github:vic/checkmate?dir=templates/success";
target.url = "github:denful/checkmate?dir=templates/success";
treefmt-nix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:numtide/treefmt-nix";
Expand Down
2 changes: 1 addition & 1 deletion modules/checkmate/dendritic.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ inputs, lib, ... }:
{
flake-file.inputs.flake-file.url = lib.mkDefault "github:vic/flake-file";
flake-file.inputs.flake-file.url = lib.mkDefault "github:denful/flake-file";
imports = [
(inputs.flake-file.flakeModules.dendritic or { })
];
Expand Down
2 changes: 1 addition & 1 deletion modules/checkmate/target.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, ... }:
{
flake-file.inputs.target.url = lib.mkDefault "github:vic/checkmate?dir=templates/success";
flake-file.inputs.target.url = lib.mkDefault "github:denful/checkmate?dir=templates/success";
}
2 changes: 1 addition & 1 deletion modules/flakeModule.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
];

flake-file.inputs.checkmate = {
url = lib.mkDefault "github:vic/checkmate";
url = lib.mkDefault "github:denful/checkmate";
inputs = {
flake-file.follows = "flake-file";
flake-parts.follows = "flake-parts";
Expand Down
16 changes: 8 additions & 8 deletions templates/dendritic/checkmate/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions templates/dendritic/checkmate/flake.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DO-NOT-EDIT. This file was auto-generated using github:vic/flake-file.
# DO-NOT-EDIT. This file was auto-generated using github:denful/flake-file.
# Use `nix run .#write-flake` to regenerate it.
{

Expand All @@ -17,14 +17,14 @@
target.follows = "target";
treefmt-nix.follows = "treefmt-nix";
};
url = "github:vic/checkmate";
url = "github:denful/checkmate";
};
flake-file.url = "github:vic/flake-file";
flake-file.url = "github:denful/flake-file";
flake-parts = {
inputs.nixpkgs-lib.follows = "nixpkgs-lib";
url = "github:hercules-ci/flake-parts";
};
import-tree.url = "github:vic/import-tree";
import-tree.url = "github:denful/import-tree";
nix-unit = {
inputs = {
flake-parts.follows = "flake-parts";
Expand All @@ -35,7 +35,7 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-lib.follows = "nixpkgs";
systems.url = "github:nix-systems/default";
target.url = "github:vic/checkmate?dir=templates/dendritic";
target.url = "github:denful/checkmate?dir=templates/dendritic";
treefmt-nix = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:numtide/treefmt-nix";
Expand Down
2 changes: 1 addition & 1 deletion templates/dendritic/checkmate/modules/checkmate.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ inputs, ... }:
{
flake-file.inputs.target.url = "github:vic/checkmate?dir=templates/dendritic";
flake-file.inputs.target.url = "github:denful/checkmate?dir=templates/dendritic";
imports = [ (inputs.checkmate.flakeModule or { }) ];
}
Loading