nix
nix copied to clipboard
Automatically format with clang-tools
Sort of a shitpost, but most times I read through Nix I wish it was consistently formatted.
I was dying for something like this when I tried to write some code for Nix a few days ago. Hope it happens!
I just squashed all the style update commits into one, rebased onto origin/master, and applieud a single reformat commit at the end. Also I changed .git-blame-ignore-revs to be a todo marker.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/tweag-nix-dev-update-33/20048/1
TODO: add a CI check to verify formatting.