forked from DGNum/colmena
nix/eval.nix: Support setting meta.nixpkgs to a .nix that returns an initialized Nixpkgs attrset
This commit is contained in:
parent
9152c7b91d
commit
2050e84bb8
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue