lib: Remove lib.deferredModuleWith fallback
The `lib.deferredModuleWith or (...)` pattern never matched because `lib.deferredModuleWith` doesn't exist - only `lib.types.deferredModuleWith`. This was always using flake-parts' own implementation.
This commit is contained in:
parent
bd4b9dd600
commit
ef399e1230
1 changed files with 2 additions and 3 deletions
5
lib.nix
5
lib.nix
|
|
@ -33,7 +33,7 @@ let
|
|||
else maybeFlake ? inputs && maybeFlake ? outputs && maybeFlake ? sourceInfo;
|
||||
|
||||
# Polyfill https://github.com/NixOS/nixpkgs/pull/163617
|
||||
deferredModuleWith = lib.deferredModuleWith or (
|
||||
deferredModuleWith =
|
||||
attrs@{ staticModules ? [ ] }: mkOptionType {
|
||||
name = "deferredModule";
|
||||
description = "module";
|
||||
|
|
@ -54,8 +54,7 @@ let
|
|||
staticModules = lhs.staticModules ++ rhs.staticModules;
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
errorExample = ''
|
||||
For example:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue