Skip to content

Always pass extra nix arguments to nix#368

Open
stuebinm wants to merge 2 commits intoserokell:masterfrom
stuebinm:pass-arguments-to-nix
Open

Always pass extra nix arguments to nix#368
stuebinm wants to merge 2 commits intoserokell:masterfrom
stuebinm:pass-arguments-to-nix

Conversation

@stuebinm
Copy link
Copy Markdown
Contributor

Passing extra nix arguments given after the -- to all nix
invocations (even those that do not do builds) allows using deploy for flakes projects, even on
installations where flakes are not enabled globally, by simply passing

; deploy ... -- --extra-experimental-features flakes

which did not work before: instead it the test_flake_support() check would return false, so we'd run the non-flake mode even if explicitly not desired. I'd argue is definitely confusing behaviour; in fact I found it during an introductory Nix session with someone running on a non-flake system, and was myself surprised it did not work.

Passing extra nix arguments given after the `--' to all other nix
invocations allows using `deploy' for flakes projects, even on
installations where flakes are not enabled globally, by simply passing

  deploy ... -- --extra-experimental-features flakes

which did not work before and was arguably confusing behaviour.
This allows the deploy to function correctly on systems where
nix-command is not an enabled experimental feature.
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.

1 participant