| 5 Jul 2021 |
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 |
fufexan | oh, right | 20:45:40 |
David Arnold (blaggacao) | (it currently does not reproduce it, I guess, does it? -- I tried) | 20:45:52 |
fufexan | okay, pushed on that same branch | 20:47:00 |
David Arnold (blaggacao) | my bad I thought I was testing ip, but actually tested master, srt | 20:50:01 |
David Arnold (blaggacao) | * my bad I thought I was testing ip, but actually tested master, sry | 20:50:06 |
fufexan | oh no worries | 20:50:11 |
David Arnold (blaggacao) | But now can reproduce 😀 | 20:50:15 |
David Arnold (blaggacao) | Ah~ now I see it: it is fromOvlerys self.overlays not fromOverlays self.overlay | 20:51:35 |
fufexan | yes, that's it | 20:52:14 |
David Arnold (blaggacao) | In reply to @fufexan:matrix.org
{
description = "NUR packages";
inputs = {
nixpkgs.url = github:NixOS/nixpkgs;
utils.url = github:gytis-ivaskevicius/flake-utils-plus/staging;
nixpkgs-osu.url = "github:NixOS/nixpkgs/73b982e62194a5d85827d87b0851aee06932979f";
nixpkgs-kak.url = "github:NixOS/nixpkgs/e5920f73965ce9fd69c93b9518281a3e8cb77040";
kakoune-cr = { url = "github:alexherbo2/kakoune.cr"; flake = false; };
picom-jonaburg = { url = "github:jonaburg/picom"; flake = false; };
};
outputs = { self, nixpkgs, utils, ... }@inputs:
utils.lib.systemFlake rec {
inherit self inputs;
overlay = import ./pkgs { inherit inputs; };
overlays = utils.lib.exporters.internalOverlays { inherit (self) pkgs inputs; };
# build all packages defined in ./pkgs/default.nix for their respective systems
outputsBuilder = channels: {
packages = utils.lib.exporters.fromOverlays self.overlays channels;
};
};
}
this is my flake if it helps
This was actually correct. 🤣 and should not fail | 20:52:20 |
fufexan | as Pacman99 said, I was missing setting overlaysBuilder for the channel | 20:52:50 |