Skip to content

can't eval pkgs in repl #273

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

Closed
Atemu opened this issue Jan 8, 2025 · 1 comment · Fixed by #285
Closed

can't eval pkgs in repl #273

Atemu opened this issue Jan 8, 2025 · 1 comment · Fixed by #285
Labels
good first issue Good for newcomers

Comments

@Atemu
Copy link
Contributor

Atemu commented Jan 8, 2025

Something I noticed today is that we can't eval the pkgs attr of a robotnix drv:

nix-repl> pkgs 
error: attribute 'pkgs' missing
       at /Users/atemu/Projects/robotnix/default.nix:86:18:
           85| in {
           86|   inherit (eval) pkgs options;
             |                  ^
           87|   inherit config;

It's nothing major but that should be fixed.

@Atemu Atemu added the good first issue Good for newcomers label Jan 8, 2025
@Atemu
Copy link
Contributor Author

Atemu commented Mar 19, 2025

Okay apparently this has been broken ever since it's been introduced in 56b81ce.

What's extremely weird though is that the pkgs attr appears to be absent from _module.args but somehow modules are able to use it?

Atemu added a commit to Atemu/robotnix that referenced this issue Mar 19, 2025
@Atemu Atemu closed this as completed in 2e7e364 Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant