meta.generated: set for script-created package sets#528290
meta.generated: set for script-created package sets#528290ethancedwards8 wants to merge 5 commits into
Conversation
Link: NixOS#513818 Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
|
@ethancedwards8 Hi, I've did started #513810 for this issue, but my main blocker was that i was unable to find the resource to build the package sets. I'd like to comfirm that the generation goes well. I think it could also be an opportunity to provide some docs that truly feels missing on how to generate them from a single command |
|
ah right. sorry. totally missed your PR! |
|
But yes I also had a hard time finding docs to generate many of these. Which is why I only changed the ones that are generated on eval via importing json/toml/etc. |
|
@ethancedwards8 I had not really advertised it either, for the above reason and that i wanted to get more feedback on the issue too 😅 |
|
I don't think this is the right approach. This sets Presumably, the burden should be on the generating program to output |
|
I broadly agree with your comment. That being said, some of these functions (for example for the I agree that if the builder is exposed to downstream consumers it should be set in the update script. vimPlugins for example. |
|
I have a fairly complete diff to do this only for actual packages that were generated. On my phone right now but I'll make a note to share it later today. For me the motivation is NixOS/rfcs#180, because we don't want to give warnings for maintainerless leaf packages if they're generated. |
|
@infinisil My motivation was also to help with scripting, but to filter out theses packages for treewide prs! (which i had noticed some editing generated files). It sounds like you found a great usage of my silly variable :o |
|
Maybe we could have it set first on |
|
Here's my diff: tweag@5034648 It's not complete nor entirely correct, but a start. There's a bunch of position fixups as well, which are often used to determine whether something lives in a generated file when there's no other way. I'll probably be able to submit a PR for this this month along with the RFC#180 work |
|
Fwiw, unfortunately I ended up going for something more specialised for my use case: |
Things done
Partially addresses: #513818
CC @Sigmanificient
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.