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

Can't access default lib modules after extending nixpkgs.lib #8

Closed
shadowrylander opened this issue Oct 21, 2020 · 7 comments
Closed
Labels

Comments

@shadowrylander
Copy link

shadowrylander commented Oct 21, 2020

Hello!

I can't seem to access the default lib modules after extending nixpkgs.lib; when trying to access mkDefault, for example, the error states that the attribute doesn't exist.

Here are my flake.nix and my lib/default.nix.

Thank you kindly for the help!

Update: here's a reddit post I created as well.

@shadowrylander
Copy link
Author

Actually, I might've fixed that; now I need to know why using the extended lib with imports (before config) is throwing errors that the names of my attribute sets for my paths in path.nix are not options!

@shadowrylander
Copy link
Author

Pinging @hlissner; sorry! I'm just really, really stuck on this next bit!

@shadowrylander
Copy link
Author

Well that's strange; I somehow fixed the next error by not using the lib.my.paths in my modules list...

@shadowrylander
Copy link
Author

And it seems I've come back full circle; some modules cannot seem to access certain variables in the lib module, whether built-in, such as mkForce, or my own.

@shadowrylander
Copy link
Author

Actually, it seems like I can't access anything from the extended module; the attributes are either seen as missing, or are confused for options by the Nix interpreter.

@shadowrylander
Copy link
Author

shadowrylander commented Nov 2, 2020

@hlissner: It would appear as though usage of your lib extension fails with the same errors as well.

@hlissner hlissner added the bug label Jun 25, 2024
@hlissner
Copy link
Owner

Sorry for only noticing this issue now, but I imagine you must've gotten around this by this point. I've since restructured my local libs to further disambiguate them from nixpkgs.lib, so I'll assume it's been resolved at some point along the way. Thanks for bringing it to my attention, in any case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants