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

question: why are @args not forwardable? #161

Open
gabyx opened this issue Jan 28, 2025 · 0 comments
Open

question: why are @args not forwardable? #161

gabyx opened this issue Jan 28, 2025 · 0 comments

Comments

@gabyx
Copy link

gabyx commented Jan 28, 2025

Hello,

Great project!

I have simple question I have a shells/custom/default.nix where:

{
  lib,
  pkgs,
  namespace, # if I remove this because unused, the `args` do not contain it anymore?
  ...
}@args:
let
  toolchains = import ../toolchain.nix args; # args is not the full attrset?
in 
{
...
}

I am unsure why I need to name all keys in args in the function arguments, when I want to forward to my function toolchain.nix.
If I remove namespace in {...}@args the below import does not work anymore? Why is that?

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

No branches or pull requests

1 participant