Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attribute / shell-attribute confusion? #39

Open
Zimmi48 opened this issue Jun 29, 2021 · 5 comments
Open

attribute / shell-attribute confusion? #39

Zimmi48 opened this issue Jun 29, 2021 · 5 comments
Labels
question Further information is requested

Comments

@Zimmi48
Copy link
Member

Zimmi48 commented Jun 29, 2021

From the documentation in config.nix, it would seem that nix-build and nix-shell (without arguments) should target a different attribute if attribute and shell-attribute are both set and differ. Yet, (at least with the latest coq-nix-toolbox) both commands actually target the shell-attribute. Should we fix the toolbox or the documentation?

@Zimmi48 Zimmi48 added the question Further information is requested label Jun 29, 2021
@CohenCyril
Copy link
Collaborator

Thanks for raising the question, I had not noticed. These two attributes date back to the time where it was impossible to build other derivations. But now we can, somehow attribute is now only used to make the CI now which package to consider for rev deps...
Hence, I think we should fix the doc, and see these two attributes as a documentation that there is a divergence between the end-user package and the dev environement, while nix-build without argument should be in sync with nix-shell.

@Zimmi48
Copy link
Member Author

Zimmi48 commented Jun 29, 2021

As I understand it, attribute is providing a default value for bundles' main job. This led me to proposing the simplification at #40.

Do you confirm that we should also fix the documentation appearing here:

## by default the current package and its shell attributes are main jobs

I.e., is it correct that the shell-attribute is not a main job and not included by default in a bundle?

@CohenCyril
Copy link
Collaborator

Yes, it is

(setAttrByPath config.shell-ppath
{ override.version = "${config.src}";
job = config.shell-attribute;
main-job = true; })

But maybe it shouldn't?

@Zimmi48
Copy link
Member Author

Zimmi48 commented Jun 30, 2021

But then how come that my patch in #40, which removed coqPackages.coq-shell.job = false, still generates the same workflows?

@CohenCyril
Copy link
Collaborator

Yep, I'm confused too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants