Skip to content

Update all template to implement "inputsOverrides" pattern - #19

Merged
vic merged 1 commit into
denful:mainfrom
jbgi:template-update
Oct 2, 2026
Merged

vic merged 1 commit into
denful:mainfrom
jbgi:template-update

Conversation

@jbgi

@jbgi jbgi commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Draft, depends on #18 and need pins update after #18 get merged.
Ready for review/merge.

@jbgi
jbgi marked this pull request as draft September 1, 2026 17:32
@vic

vic commented Sep 3, 2026

Copy link
Copy Markdown
Member

#18 merged now

@jbgi
jbgi marked this pull request as ready for review September 4, 2026 08:18
@vic

vic commented Sep 11, 2026

Copy link
Copy Markdown
Member

@jbgi one question: Is there any particular reason we are adding flake.nix to all templates ? This project is supposed for "setups without flake.nix", so maybe there's value of showing your override inputs pattern in the flake template only. Do you believe it is necessary for all templates to have a flake.nix ?

@jbgi

jbgi commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor Author

@vic My main goal is to be able to override and/or follows inputs of any with-inputs-based project. That requires a convention for finding the ouputs function , thus using the flake one, as it is well-defined and I figured most project would expose a flake.nix anyway, for compatibility with flake.

But we could also support a non-flake way to inject inputsOverrides, by checking if a source has a default.nix exposing a function with all arguments being optional, including one being name inputsOverrides. It sounds a bit more fragile though... but I can open a PR to support this if you'd like?

@jbgi
jbgi marked this pull request as draft September 12, 2026 16:33
@jbgi

jbgi commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

@vic actually found an issue with my input override via flake for some flake (eg. https://github.com/nix-community/nixpkgs.lib/blob/master/flake.nix). Opening a MR soon to switch to using default.nix as described above.

@jbgi

jbgi commented Sep 13, 2026

Copy link
Copy Markdown
Contributor Author

Will update pins and undraft after #22 get merged.

@jbgi jbgi changed the title Add a flake.nix to all template to implement "inputOverrides" pattern Update all template to implement "inputsOverrides" pattern Sep 13, 2026
and update all pins. Exclude generated template files from formatting.
@jbgi
jbgi force-pushed the template-update branch from be6ee97 to 3c4b7a2 Compare October 2, 2026 10:50
@jbgi
jbgi marked this pull request as ready for review October 2, 2026 10:52
@jbgi

jbgi commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Updated following merge of #22.

@vic vic left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the update, I think I prefer not having a flake.nix file everywhere, after all the whole point of this is not having such a file. However you could create another fixtures or another template to ci-test and showcase the inputsOverrides pattern.

@jbgi

jbgi commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@vic I already removed flake.nix. Since #22, the inputsOverrides pattern does not use flake.nix anymore.

@jbgi
jbgi requested a review from vic October 2, 2026 17:47
@vic
vic merged commit dca3f33 into denful:main Oct 2, 2026
4 of 5 checks passed
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