mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
lib/modules: deprecate 'mkAliasIfDef'
This commit is contained in:
@@ -1542,7 +1542,9 @@ let
|
||||
in
|
||||
mkIf option.isDefined (wrap (mkMerge defsWithPrio));
|
||||
|
||||
mkAliasIfDef = option: mkIf option.isDefined;
|
||||
mkAliasIfDef =
|
||||
lib.warn "Usage of 'mkAliasIfDef' has been deprecated. Use 'mkIf option.isDefined' instead."
|
||||
(option: mkIf option.isDefined);
|
||||
|
||||
/**
|
||||
Compatibility.
|
||||
|
||||
Reference in New Issue
Block a user