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

unable to access namespace in overlays #121

Open
Yash-Garg opened this issue Jul 20, 2024 · 9 comments
Open

unable to access namespace in overlays #121

Yash-Garg opened this issue Jul 20, 2024 · 9 comments

Comments

@Yash-Garg
Copy link

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 { } // valuewhile 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: {
@jakehamilton
Copy link
Member

Are you on the latest version?

@Yash-Garg
Copy link
Author

Are you on the latest version?

Think so, I'm using the dev branch in my flake inputs.

{
  "snowfall-lib": {
    "inputs": {
      "flake-compat": "flake-compat_4",
      "flake-utils-plus": [
        "flake-utils-plus"
      ],
      "nixpkgs": [
        "nixpkgs"
      ]
    },
    "locked": {
      "lastModified": 1717625599,
      "narHash": "sha256-qX9VJizFEoiRWDEiVs5+2w4FclQNQVVPvGPESsZ1F8k=",
      "owner": "snowfallorg",
      "repo": "lib",
      "rev": "5a10d2e37b6c6223763fa7c00b974875e49f93cc",
      "type": "github"
    },
    "original": {
      "owner": "snowfallorg",
      "ref": "dev",
      "repo": "lib",
      "type": "github"
    }
  }
}

@jakehamilton
Copy link
Member

Can you switch to main?

@Yash-Garg
Copy link
Author

Can you switch to main?

I tried, getting the same issue.

@jakehamilton
Copy link
Member

Can you share your config in a GitHub repository?

@Yash-Garg
Copy link
Author

Can you share your config in a GitHub repository?

Sure, here's the flake.nix file. I haven't pushed the namespace changes on the repo since it wasn't working.

@Yash-Garg
Copy link
Author

Hey, sorry to bother you but did you get a chance to look at the issue? @jakehamilton

@jakehamilton
Copy link
Member

Haven't gotten around to taking a look just yet, sorry.

@songpola
Copy link

+1, Same problem here.

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