Would be nice that instead of just printing the attr addition line, that nix-template will just add the attr name at an appropriate location within the file.
The steps would roughly be:
- remove all comments,
- split file on paragraphs,
- then find location
- insert new package reference