numtide / treefmt-nix

treefmt nix configuration
https://numtide.github.io/treefmt/
MIT License
228 stars 68 forks source link

flake-parts: add 'description' to the flake check #116

Closed srid closed 1 year ago

srid commented 1 year ago

Adding description meta is useful in apps that inspect the flake and present the information to the user. I noticed that the treefmt package itself has a description:

image

But the flake check does not,

image

(Screenshots from https://github.com/juspay/nix-browser)

This PR resolves that.

CLI,

nix-repl> checks.aarch64-darwin.treefmt.meta.description
"Check that the project tree is formatted"
srid commented 1 year ago

Diff: https://github.com/numtide/treefmt-nix/pull/116/files?diff=unified&w=1

srid commented 1 year ago

Garnix fails for some reason, but nix flake check succeeds locally.

zimbatm commented 1 year ago

thanks!