summary refs log tree commit diff
path: root/pkgs/lib/strings-with-deps.nix
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2009-08-22 09:35:59 +0000
committerMarc Weber <marco-oweber@gmx.de>2009-08-22 09:35:59 +0000
commit9c49ad9f70f74625b482f829e4b4c54b9444b105 (patch)
tree530ef8493de0e663b36830de070d3592d6535d3d /pkgs/lib/strings-with-deps.nix
parent84e5a942573ab5c282b7070d1aa5582c29712883 (diff)
downloadnixpkgs-9c49ad9f70f74625b482f829e4b4c54b9444b105.tar
nixpkgs-9c49ad9f70f74625b482f829e4b4c54b9444b105.tar.gz
nixpkgs-9c49ad9f70f74625b482f829e4b4c54b9444b105.tar.bz2
nixpkgs-9c49ad9f70f74625b482f829e4b4c54b9444b105.tar.lz
nixpkgs-9c49ad9f70f74625b482f829e4b4c54b9444b105.tar.xz
nixpkgs-9c49ad9f70f74625b482f829e4b4c54b9444b105.tar.zst
nixpkgs-9c49ad9f70f74625b482f829e4b4c54b9444b105.zip
trace warning when using attrs for textClosureList
svn path=/nixpkgs/trunk/; revision=16810
Diffstat (limited to 'pkgs/lib/strings-with-deps.nix')
-rw-r--r--pkgs/lib/strings-with-deps.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/lib/strings-with-deps.nix b/pkgs/lib/strings-with-deps.nix
index 7543beddb52..0cd1416e0be 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;