I don't know which assumption you have in mind on the underlying field, but in the following I make no assumption, and use no particular nontrivial theorem.
The 2-dimensional non-abelian Lie algebra is complete, in the sense that every derivation is inner, and has trivial center (these are straightforward verification). It follows that whenever it occurs as an ideal in a Lie algebra, it is a direct factor. In particular, since in addition it's not a perfect Lie algebra, it cannot be the derived subalgebra of any Lie algebra.
Thus, in your case the derived Lie algebra has to be abelian and hence the derived length is 2.