Skip to content

cli: Add --nix-option to allow passing arbitrary nix options #126

Merged
zhaofengli merged 3 commits intozhaofengli:mainfrom
ThinkChaos:cli/nix-option
Nov 14, 2022
Merged

cli: Add --nix-option to allow passing arbitrary nix options #126
zhaofengli merged 3 commits intozhaofengli:mainfrom
ThinkChaos:cli/nix-option

Conversation

@ThinkChaos
Copy link
Contributor

I use this to pass extra-builtins-file, but thought it would be more useful to add a generic flag.

An other solution would be forwarding any extra args to nix: colmena build --verbose -- --option name value.
If that sounds better I can do that!

I also renamed NixOptions to NixFlags to help differentiate in the code between Nix's --option and other CLI
flags (previously referred to as options). This is a separate commit and can be squashed/dropped/left as is if you want.
I could also rename the other *Options types if you'd like.

Copy link
Owner

@zhaofengli zhaofengli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! Just ran cargo fmt on the first commit and waiting for the CI to pass.

@zhaofengli zhaofengli merged commit fff97f7 into zhaofengli:main Nov 14, 2022
@ThinkChaos ThinkChaos deleted the cli/nix-option branch June 17, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants