Enables the following renaming A -> C & B -> C and A -> B & B -> C.
svn path=/nixos/trunk/; revision=24295
This commit is contained in:
parent
1b55007d63
commit
40df597205
|
@ -27,7 +27,13 @@ let
|
||||||
|
|
||||||
zipModules = list: with pkgs.lib;
|
zipModules = list: with pkgs.lib;
|
||||||
zip (n: v:
|
zip (n: v:
|
||||||
if tail v != [] then zipModules v else head v
|
if tail v != [] then
|
||||||
|
if n == "_type" then builtins.trace "Merge _type" (head v)
|
||||||
|
else if n == "extraConfigs" then builtins.trace "Merge extraConfigs" (concatLists v)
|
||||||
|
else if n == "description" || n == "apply" then
|
||||||
|
abort "Cannot rename an option to multiple options."
|
||||||
|
else zipModules v
|
||||||
|
else head v
|
||||||
) list;
|
) list;
|
||||||
|
|
||||||
rename = statusTemplate: from: to: with pkgs.lib;
|
rename = statusTemplate: from: to: with pkgs.lib;
|
||||||
|
|
Loading…
Reference in New Issue