This document describes some of the issues that exist with stdenv.mkDerivation
and that could or should be considered when redesigning it.
stdenv.mkDerivation
comes with several fixed phases. It is possible to
override these phases or add other phases. It is however difficult to make
phases depend on one another as that requires describing their relative order