Use the module assertions option, instead
- Assertion (failure) when trying to use microsoft/surface/default.nix
This commit is contained in:
parent
9d4505d4e1
commit
ee8fef4149
|
@ -1,12 +1,10 @@
|
||||||
{ lib, ... }:
|
{ ... }:
|
||||||
|
|
||||||
let
|
{
|
||||||
inherit (lib) warn;
|
assertions = [
|
||||||
|
{
|
||||||
in {
|
assertion = false;
|
||||||
imports = [
|
message = "Importing microsoft/surface/ (default.nix) directly is deprecated! See microsoft/surface/OLD-BEHAVIOUR-DEPRECATED.md for more details.";
|
||||||
( warn
|
}
|
||||||
"Please do not import microsoft/surface/ (default.nix) directly; use microsoft/surface/old or see microsoft/surface/old/README.md for more details."
|
|
||||||
./deprecated )
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue