eval.nix: Make the uninitialized nixpkgs error more informative
This commit is contained in:
parent
f716daa3a1
commit
006cb2c5ee
1 changed files with 4 additions and 5 deletions
|
@ -293,19 +293,18 @@ let
|
||||||
|
|
||||||
mkNixpkgs = configName: pkgConf: let
|
mkNixpkgs = configName: pkgConf: let
|
||||||
uninitializedError = typ: ''
|
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, ... }: {
|
outputs = { nixpkgs, ... }: {
|
||||||
colmena = {
|
colmena = {
|
||||||
meta = {
|
${configName} = import nixpkgs {
|
||||||
nixpkgs = import nixpkgs {
|
|
||||||
system = "${currentSystem}";
|
system = "${currentSystem}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|
Loading…
Reference in a new issue