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

packages from external overlays not usable from flake packages #61

Open
casuallyblue opened this issue Mar 8, 2024 · 3 comments
Open

Comments

@casuallyblue
Copy link

I'm currently testing out snowfall on my nix configs and I'm running into the issue that packages from external overlays don't seem to get applied to the pkgs instance given to packages created in a flake. The overlays are added to the overlays attribute of snowfall-lib.mkFlake and the packages in them are not namespaced so it seems that they should appear but nix fails to evauluate due to the attribute missing. Its quite possible that I'm missing something about how to consume overlays with mkFlake though.

https://git.casuallyblue.dev/sierra/site/src/commit/7a7c9a4732eb2ce80b424aeb1b98e6bf1445cd88/flake.nix#L34
https://git.casuallyblue.dev/sierra/site/src/commit/7a7c9a4732eb2ce80b424aeb1b98e6bf1445cd88/packages/site-files/default.nix#L11

@jakehamilton
Copy link
Member

Hey there!

From taking a look it seems like your resume flake has namespace = "sierra" set which will make the overlay put the packages at pkgs.sierra.*. Can you try accessing it from there instead?

https://git.casuallyblue.dev/sierra/resume/src/commit/e8f0fe4c816a4592d94cf38d052de925da607179/flake.nix#L17

@casuallyblue
Copy link
Author

Currently both give the error 'Attribute {name} missing' where name is either sierra.resume or resume in this case

@DeadlySquad13
Copy link

Hey there!

From taking a look it seems like your resume flake has namespace = "sierra" set which will make the overlay put the packages at pkgs.sierra.*. Can you try accessing it from there instead?

https://git.casuallyblue.dev/sierra/resume/src/commit/e8f0fe4c816a4592d94cf38d052de925da607179/flake.nix#L17

Had the same error after creating custom package, thanks for advice - it helped!

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

3 participants