about summary refs log tree commit diff
path: root/nixpkgs/lib/tests/modules/doRename-warnings.nix
blob: 6f0f1e87e3aa5a198ff87106a79e6b2cf14cdfdf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ lib, config, ... }: {
  imports = [
    (lib.doRename { from = ["a" "b"]; to = ["c" "d" "e"]; warn = true; use = x: x; visible = true; })
  ];
  options = {
    warnings = lib.mkOption { type = lib.types.listOf lib.types.str; };
    c.d.e = lib.mkOption {};
    result = lib.mkOption {};
  };
  config = {
    a.b = 1234;
    result = lib.concatStringsSep "%" config.warnings;
  };
}