nix/eval.nix: Support setting meta.nixpkgs to a .nix that returns an initialized Nixpkgs attrset

This commit is contained in:
Zhaofeng Li 2021-01-17 00:06:20 -08:00
parent 9152c7b91d
commit 2050e84bb8

View file

@ -93,7 +93,8 @@ let
mkNixpkgs = configName: pkgConf:
if typeOf pkgConf == "path" then
import pkgConf {}
# The referenced file might return an initialized Nixpkgs attribute set directly
mkNixpkgs configName (import pkgConf)
else if typeOf pkgConf == "lambda" then
pkgConf {}
else if typeOf pkgConf == "set" then