| 5 Jul 2021 |
fufexan | hold on, I'll modify the structure to match my dotfiles and see if anything happens | 20:08:45 |
Pacman99 | In reply to @fufexan:matrix.org but packages.${system} is empty 🤔 Have you applied any overlays to your channel? | 20:09:10 |
fufexan | nope, I just found that out | 20:10:34 |
fufexan | it seems to be working when I add them | 20:10:48 |
David Arnold (blaggacao) | Alright, strange the error then, though. | 20:14:10 |
David Arnold (blaggacao) | Would a code branch help that checks for self.overlays being different from {}? | 20:15:04 |
fufexan | I believe so | 20:15:36 |
David Arnold (blaggacao) | * Would a code branch help that asserts for `self.overlays` being different from `{}`? | 20:15:40 |
fufexan | well maybe not really, since it says value is a function, not a set | 20:16:02 |
fufexan | * well maybe not really, since it says value is a function while a set was expected | 20:16:14 |
David Arnold (blaggacao) | That's the error that puzzles me. | 20:16:18 |
fufexan | couldn't it also accept self.overlay? | 20:17:03 |
fufexan | * couldn't it also accept self.overlay? with a bit of work | 20:17:25 |
fufexan | I'll look into it tomorrow since I know you're busy fellows | 20:17:38 |
fufexan | thanks for helping me debug this :D | 20:17:49 |
David Arnold (blaggacao) | I wonder where the function comes from... | 20:18:25 |
David Arnold (blaggacao) | nix-repl> builtins.attrValues {}
[ ]
| 20:18:33 |
David Arnold (blaggacao) | (being {} doesn't seem t be a particular problem) | 20:18:48 |
David Arnold (blaggacao) | must be a toxic output of internalOverlays, I'd say | 20:19:19 |
David Arnold (blaggacao) | (_: v: [ v.overlay or (_: _: { }) ] ++ attrValues v.overlays or { }) | 20:23:13 |
David Arnold (blaggacao) | vs: (_: v: [ v.overlay or (_: _: { }) ] ++ attrValues (v.overlays or { })) ? | 20:23:27 |
David Arnold (blaggacao) | * vs:
(_: v: [ v.overlay or (_: _: { }) ] ++ attrValues (v.overlays or { })) ? | 20:24:00 |
David Arnold (blaggacao) | Don't remember if this precedence rule is implicit.. | 20:24:39 |
David Arnold (blaggacao) | fufexan: Can you push the failing state to a branch so I can try to reproduce? | 20:39:36 |
David Arnold (blaggacao) | I don't want to 🤷 because this is goging to pop up again, eventually. | 20:39:54 |
David Arnold (blaggacao) | * I don't want to 🤷 because this is going to pop up again, eventually. | 20:41:02 |
fufexan | hmm, let me try getting it to fail again | 20:43:31 |
fufexan | https://github.com/fufexan/nur/tree/wip isn't this error the one you're looking for? | 20:45:10 |
fufexan | or, was it the error about flattenTree? | 20:45:23 |
David Arnold (blaggacao) | In reply to @fufexan:matrix.org
error: value is a function while a set was expected
at /nix/store/i4ihaf9zkrrddjqbnhcxpwrwbfpr2qhb-source/lib/fromOverlays.nix:53:29:
52| let
53| allOverlays = attrValues overlays;
| ^
54|
This | 20:45:33 |