snowfallorg / snowfallorg/lib

packages from external overlays not usable from flake packages

Open
#61 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Nix
Stars
628
Forks
64
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the referenced flake.nix at line 34 and packages/site-files/default.nix at line 11, then trace how snowfall-lib.mkFlake passes overlays to the pkgs instance used by flake packages. Reproduce the missing-attribute evaluation and verify that an unnamespaced package from an external overlay is available through the resulting flake packages.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.