Skip to content

Commit c7e6531

Browse files
authored
Fix flake overlay attr (#684)
Fix flake overlay attr Solves the following error: while evaluating the attribute 'overlays.combined-eval-on-build' at /nix/store/0gg5rsi7nvwlk2ky1w595qyjgwpqj35g-source/flake.nix:11:5: value is a function while a set was expected, at /nix/store/0gg5rsi7nvwlk2ky1w595qyjgwpqj35g-source/flake.nix:10:15
1 parent a405a83 commit c7e6531

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Using the eval-on-build version here as the plan is that
88
# `builtins.currentSystem` will not be supported in flakes.
99
# https://github.com/NixOS/rfcs/pull/49/files#diff-a5a138ca225433534de8d260f225fe31R429
10-
overlay = self.overlays.combined-eval-on-build;
10+
overlay = (self.overlays {}).combined-eval-on-build;
1111
overlays = import ./overlays;
1212
config = import ./config.nix;
1313
sources = import ./nixpkgs;

overlays/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ let
5353
(ordered ++ [overlays.eval-on-current]);
5454
combined-eval-on-build = builtins.foldl' composeExtensions (_: _: { })
5555
(ordered ++ [overlays.eval-on-build]);
56-
in overlays // { inherit combined; }
56+
in overlays // { inherit combined combined-eval-on-build; }

0 commit comments

Comments
 (0)