eval.nix: Make the uninitialized nixpkgs error more informative

This commit is contained in:
Zhaofeng Li 2021-11-16 21:01:40 -08:00
parent f716daa3a1
commit 006cb2c5ee

View file

@ -293,16 +293,15 @@ let
mkNixpkgs = configName: pkgConf: let
uninitializedError = typ: ''
Passing ${typ} is no longer accepted with Flakes. Please initialize Nixpkgs like the following:
Passing ${typ} as ${configName} is no longer accepted with Flakes.
Please initialize Nixpkgs like the following:
{
# ...
outputs = { nixpkgs, ... }: {
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "${currentSystem}";
};
${configName} = import nixpkgs {
system = "${currentSystem}";
};
};
};