Skip to content

Switch from fixMergeModules to evalModules#1506

Merged
roberth merged 2 commits intoNixOS:masterfrom
talyz:eval-modules
Feb 21, 2022
Merged

Switch from fixMergeModules to evalModules#1506
roberth merged 2 commits intoNixOS:masterfrom
talyz:eval-modules

Conversation

@talyz
Copy link
Contributor

@talyz talyz commented Feb 17, 2022

fixMergeModules is deprecated and using it produces deprecation warning messages in newer revisions of nixpkgs. Since it's implemented as a simple wrapper around evalModules, let's just use evalModules instead and set the module arguments through config._module.args.

Fixes #1507

@roberth
Copy link
Member

roberth commented Feb 19, 2022

For the purpose of bisectability, could you split this into

  1. a commit that inlines the fixMergeModules definition and avoids the deprecated args. This still includes moduleArgs._module.check = false. That should make it purely refactoring.
  2. a commit that removes moduleArgs._module.check = false, which is not a pure refactoring, but a change in behavior that is probably good.

fixMergeModules is deprecated and using it produces deprecation
warning messages in newer revisions of nixpkgs. Since it's implemented
as a simple wrapper around evalModules, let's just use evalModules
instead and set the module arguments through config._module.args.
@talyz
Copy link
Contributor Author

talyz commented Feb 21, 2022

Done!

@roberth
Copy link
Member

roberth commented Feb 21, 2022

Thank you!

@roberth roberth merged commit e394044 into NixOS:master Feb 21, 2022
@talyz talyz deleted the eval-modules branch February 22, 2022 07:59
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.

The args argument to evalModules is deprecated

2 participants