{"id":26446531,"url":"https://github.com/vic/checkmate","last_synced_at":"2025-08-02T05:08:08.353Z","repository":{"id":282474941,"uuid":"948719048","full_name":"vic/checkmate","owner":"vic","description":"A flake checker (treefmt \u0026 nix-unit) for testing other flakes with zero dependencies.","archived":false,"fork":false,"pushed_at":"2025-07-15T04:29:45.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-15T10:13:32.497Z","etag":null,"topics":["flake","flakes","nix","nix-flake","treefmt","treefmt-nix","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"oeiuwq","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-03-14T20:46:23.000Z","updated_at":"2025-07-15T04:29:48.000Z","dependencies_parsed_at":"2025-03-14T21:36:10.393Z","dependency_job_id":"94976e0f-e2ee-485e-9d97-d2ceaa5cc8bd","html_url":"https://github.com/vic/checkmate","commit_stats":null,"previous_names":["vic/checkmate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vic/checkmate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fcheckmate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fcheckmate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fcheckmate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fcheckmate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic","download_url":"https://codeload.github.com/vic/checkmate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fcheckmate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268338024,"owners_count":24234539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flake","flakes","nix","nix-flake","treefmt","treefmt-nix","unit-testing"],"created_at":"2025-03-18T12:18:11.248Z","updated_at":"2025-08-02T05:08:08.343Z","avatar_url":"https://github.com/vic.png","language":"Nix","funding_links":["https://ko-fi.com/oeiuwq"],"categories":[],"sub_categories":[],"readme":"# Checkmate - A flake checker (treefmt \u0026 nix-unit) for testing other flakes with zero dependencies.\n\nChecks include:\n\n- treefmt - nixfmt, deadnix, mdformat, yamlfmt. See `treefmt.nix`.\n\n- nix-unit - The flake being checked (ie, `inputs.target`) is expected to expose `flakeModules.checkmate`:\n\n\u003e See [import-tree](https://github.com/vic/import-tree/blob/main/checks/checkmate.nix) or [example](https://github.com/vic/checkmate/blob/main/example/checkmate.nix)\n\n```shell\n# Generate a new project including github CI action\nnix flake new -t github:vic/checkmate\n```\n\n### Running treefmt on your code\n\n```shell\n# formatting your code\nnix run path:checkmate#fmt\n\n# checking if code is formatted\nnix run path:checkmate#fmt -- --ci\n```\n\n### Running flake check locally\n\n```shell\nnix run path:checkmate\n```\n\n### CI Usage\n\nOn your github action:\n\n```yaml\non:\n  pull_request:\n  push:\n    branches: [main]\njobs:\n  flake-check:\n    name: nix flake check\n    runs-on: ubuntu-latest\n    steps:\n      - uses: cachix/install-nix-action@v30\n      - run: nix flake check -L github:vic/checkmate --override-input target github:$GITHUB_REPOSITORY/\n$GITHUB_SHA\n```\n\nAs a fully working example, see:\n\nhttps://github.com/vic/import-tree\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fcheckmate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic%2Fcheckmate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fcheckmate/lists"}