5 Jul 2021 |
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 |
fufexan | or sharedOverlays | 20:53:06 |
David Arnold (blaggacao) | Ah yeah! But that still wouldn't error out. π So all good with fromOverlays and internalOverlays , which I feel kind of responsible for... ποΈ | 20:54:36 |
fufexan | hmm, then I'm not really sure what caused it after all | 20:55:50 |
David Arnold (blaggacao) | It definitly was self.overlay vs self.overlays | 20:56:11 |
David Arnold (blaggacao) | (since self.overlay` is a function) | 20:56:33 |
David Arnold (blaggacao) | * (since self.overlay is a function) | 20:56:42 |
David Arnold (blaggacao) | diff --git a/flake.nix b/flake.nix
index 5903627..c2ce172 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,14 +19,14 @@
utils.lib.systemFlake {
inherit self inputs;
- channels.nixpkgs.overlaysBuilder = _: [ self.overlay ];
+ # channels.nixpkgs.overlaysBuilder = _: [ self.overlay ];
overlay = import ./pkgs { inherit inputs; };
overlays = internalOverlays { inherit (self) pkgs inputs; };
# build all packages defined in ./pkgs/default.nix for their respective systems
outputsBuilder = channels: {
- packages = fromOverlays self.overlay channels;
+ packages = fromOverlays self.overlays channels;
};
};
}
| 20:58:01 |
David Arnold (blaggacao) | This makes aaef1cbefa3827d759d5a75c000fd6fa1fa2b52d so it does not error out. | 20:58:22 |
David Arnold (blaggacao) | No worries, trading m time for mind share is usually a high yield tradeoff π€£ | 21:00:21 |
fufexan | then I'm happy to help and be helped π | 21:01:07 |
fufexan | In reply to @blaggacao:matrix.org This makes aaef1cbefa3827d759d5a75c000fd6fa1fa2b52d so it does not error out. well, it does not but the output isn't right | 21:01:57 |
fufexan | without the overlaysBuilder
git+file:///home/mihai/Documents/code/git/nur
ββββoverlay: Nixpkgs overlay
ββββoverlays
ββββpackages
β ββββaarch64-linux
β ββββi686-linux
β ββββx86_64-darwin
β ββββx86_64-linux
ββββpkgs: unknown
| 21:02:11 |