Enables the following renaming A -> C & B -> C and A -> B & B -> C.

svn path=/nixos/trunk/; revision=24295
This commit is contained in:
Nicolas Pierron 2010-10-14 18:18:38 +00:00
parent 1b55007d63
commit 40df597205

View File

@ -27,7 +27,13 @@ let
zipModules = list: with pkgs.lib;
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;
rename = statusTemplate: from: to: with pkgs.lib;