Added traceMarked; it is traceWhatis with the extra (first) argument to distinguish the output of that exat statement.

svn path=/nixpkgs/trunk/; revision=12666
This commit is contained in:
Michael Raskin 2008-08-20 08:21:54 +00:00
parent a8da119da4
commit ff0d85fdc8

View file

@ -461,6 +461,7 @@ rec {
# this can help debug your code as well - designed to not produce thousands of lines
traceWhatis = x : __trace (whatis x) x;
traceMarked = str: x: __trace (str + (whatis x)) x;
whatis = x :
if (__isAttrs x) then
if (x ? outPath) then "x is a derivation with name ${x.name}"