snowfallorg / snowfallorg/lib

unable to access `namespace` in overlays

Open
#121 11 comments 2 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 am facing this error when trying to access namespace in my overlays/default/default.nix file.

Am I doing something wrong w.r.t the overlay docs?

error:
       … while evaluating a branch condition
         at /nix/store/45p0ynsaqkavq8b0hz6qnn5jysxa4whs-source/flake.nix:54:13:
           53|             name: value:
           54|             if isAttrs value then
             |             ^
           55|               lhs.${name} or { } // value

       … while calling the 'isAttrs' builtin
         at /nix/store/45p0ynsaqkavq8b0hz6qnn5jysxa4whs-source/flake.nix:54:16:
           53|             name: value:
           54|             if isAttrs value then
             |                ^
           55|               lhs.${name} or { } // value

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: function 'anonymous lambda' called without required argument 'namespace'
       at /nix/store/c4cl90bvylskmpcxqvv06jwd8z19g63k-7zj60sd46hsmjmv2s7fp3hkbz78fivz7-source/overlays/default/default.nix:1:1:
            1| { lib, namespace, ... }:
             | ^
            2| final: prev: {

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

Read the linked overlay documentation and inspect overlays/default/default.nix, then reproduce the error with the full stack trace. Done means determining why namespace is unavailable in that overlay context and clarifying or correcting the documented usage.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.