Nix Cookbook: Difference between revisions

mNo edit summary
Line 156: Line 156:
   withGui ?
   withGui ?
   if (withX != null) then
   if (withX != null) then
     lib.warn "withX is deprecated and will be removed in the next release; use withGui instead." withX
     lib.warn ''
      withX is deprecated and will be removed in the next release;
      use withGui instead.
    '' withX
   else
   else
     true
     true
Line 162: Line 165:
}
}
</syntaxHighlight>
</syntaxHighlight>
With this warning, consumers will have time to patch their codes.


== Wrapping packages ==
== Wrapping packages ==