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

cli: Match multiple --out-link for multiple installables #11183

Open
mmlb opened this issue Jul 25, 2024 · 0 comments
Open

cli: Match multiple --out-link for multiple installables #11183

mmlb opened this issue Jul 25, 2024 · 0 comments
Labels
feature Feature request or proposal new-cli Relating to the "nix" command

Comments

@mmlb
Copy link

mmlb commented Jul 25, 2024

Is your feature request related to a problem? Please describe.

Its frustrating to try to build multiple installables and map them to result,result-N output links.

Describe the solution you'd like

I'd like to have an easy way to define output links that map to installables in the on nix build invocation.

I think it'd be nice if I could either pass in a comma separated list to --out-link or multiple --out-link calls but that could break some other workflow (but maybe thats fine considering #7701), alternatively a new param like --out-links result-foo,result-bar could work too.

Describe alternatives you've considered

I'm currently doing the following:

nix build --no-link .#foo .#bar
nix build --out-link result-foo .#foo
nix build --out-link result-bar .#bar

I've also considered using --print-out-paths and setting bash variables from the return.

@mmlb mmlb added the feature Feature request or proposal label Jul 25, 2024
@roberth roberth added the new-cli Relating to the "nix" command label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal new-cli Relating to the "nix" command
Projects
None yet
Development

No branches or pull requests

2 participants