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

Expose specialArgs.modulesPath and specialArgs.extraModulesPath to flake module consumers #303

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

tomeon
Copy link
Contributor

@tomeon tomeon commented Mar 8, 2024

This PR factors out the construction of specialArgs, making those arguments available to flake module users as well as to users of devshell.mkShell.

Associated changes include:

  1. Replacing uses of the name extraModulesDir with extraModulesPath, to harmonize with the name of the specialArgs entry,
  2. Documentation of extraModulesPath usage,
  3. Demoing the use of extraModulesPath in the flake-parts-based flake template, and
  4. Running the basic nix develop <...> -c echo OK sanity-check on all flake templates (thus testing that the extraModulesPath in the flake-parts-based template hasn't broken anything too badly).

Thank you!

That is, provide `modulesPath` and `extraModulesPath` in the arguments
to devshell configurations defined using the flake-parts module.  This
harmonizes the behavior of `devshell.mkShell` and the flake module.
to accord with the names of module-path-related special arguments.
in the `flake-parts` template.
by running a trivial command inside the template flake, overriding the
`devshell` input to the current ref/rev.
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.

None yet

1 participant