Skip to content

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!

tomeon added 5 commits March 8, 2025 16:29
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 `default.nix`, alias `extraModulesDir` to `extraModulesPath` for
backward compatibility.
in the `flake-parts` template.
by running a trivial command inside the template flake, overriding the
`devshell` input to the current ref/rev.
@tomeon tomeon force-pushed the flake-module-special-args branch from 6be947b to 4e4fd3b Compare March 8, 2025 21:31
@zimbatm zimbatm merged commit 7c9e793 into numtide:main Mar 8, 2025
6 of 10 checks passed
@zimbatm
Copy link
Member

zimbatm commented Mar 8, 2025

thanks!

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