From 9c49ad9f70f74625b482f829e4b4c54b9444b105 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Sat, 22 Aug 2009 09:35:59 +0000 Subject: [PATCH] trace warning when using attrs for textClosureList svn path=/nixpkgs/trunk/; revision=16810 --- pkgs/lib/strings-with-deps.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/lib/strings-with-deps.nix b/pkgs/lib/strings-with-deps.nix index 7543beddb528..0cd1416e0bef 100644 --- a/pkgs/lib/strings-with-deps.nix +++ b/pkgs/lib/strings-with-deps.nix @@ -57,11 +57,12 @@ rec { else let entry = head todo; in if isAttrs entry then + builtins.trace "warning, passing attrs to textClosureList instead of dep entry names is depreceated and may cause failure" ( let x = f done entry.deps; y = f x.done (tail todo); in { result = x.result ++ [entry.text] ++ y.result; done = y.done; - } + }) else if hasAttr entry done then f done (tail todo) else f (done // listToAttrs [{name = entry; value = 1;}]) ([(builtins.getAttr entry predefined)] ++ tail todo); in (f {} arg).result;