diff options
Diffstat (limited to 'pkgs/top-level/config.nix')
-rw-r--r-- | pkgs/top-level/config.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/top-level/config.nix b/pkgs/top-level/config.nix index 7a5b4bdd17989..948eb5ef9b72c 100644 --- a/pkgs/top-level/config.nix +++ b/pkgs/top-level/config.nix @@ -32,6 +32,24 @@ let feature = "run <literal>checkPhase</literal> by default"; }; + allowAliases = mkOption { + type = types.bool; + default = true; + description = '' + Whether to expose old attribute names for compatibility. + + The recommended setting is to enable this, as it + improves backward compatibity, easing updates. + + The only reason to disable aliases is for continuous + integration purposes. For instance, Nixpkgs should + not depend on aliases in its internal code. Projects + that aren't Nixpkgs should be cautious of instantly + removing all usages of aliases, as migrating too soon + can break compatibility with the stable Nixpkgs releases. + ''; + }; + }; in { |