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
This commit is contained in:
Tony O 2020-06-14 11:30:30 +01:00 committed by GitHub
parent a405a837d0
commit c7e6531d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
# Using the eval-on-build version here as the plan is that
# `builtins.currentSystem` will not be supported in flakes.
# https://github.com/NixOS/rfcs/pull/49/files#diff-a5a138ca225433534de8d260f225fe31R429
overlay = self.overlays.combined-eval-on-build;
overlay = (self.overlays {}).combined-eval-on-build;
overlays = import ./overlays;
config = import ./config.nix;
sources = import ./nixpkgs;

View File

@ -53,4 +53,4 @@ let
(ordered ++ [overlays.eval-on-current]);
combined-eval-on-build = builtins.foldl' composeExtensions (_: _: { })
(ordered ++ [overlays.eval-on-build]);
in overlays // { inherit combined; }
in overlays // { inherit combined combined-eval-on-build; }