1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 16:27:03 +00:00

fix evaluation of darwin.pkgs for recent nixpkgs

The _module attribute was renamed in dcdd232939.
This commit is contained in:
Daiderd Jordan 2020-03-22 23:13:59 +01:00
parent 1ffae69c56
commit 073935fb99
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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;