Skip to content

Commit

Permalink
fix evaluation of darwin.pkgs for recent nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
LnL7 committed Mar 22, 2020
1 parent 1ffae69 commit 073935f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion default.nix
Expand Up @@ -20,10 +20,14 @@ let
specialArgs = { modulesPath = ./modules; };
check = true;
};

# Was moved in nixpkgs #82751, so both need to be handled here until 20.03 is deprecated.
# https://github.com/NixOS/nixpkgs/commits/dcdd232939232d04c1132b4cc242dd3dac44be8c
_module = eval._module or eval.config._module;
in

{
inherit (eval.config._module.args) pkgs;
inherit (_module.args) pkgs;
inherit (eval) options config;

system = eval.config.system.build.toplevel;
Expand Down

0 comments on commit 073935f

Please sign in to comment.