Open roberth opened 2 years ago
a way to try override setup.sh for a single derivation, to allow experimentation (shortest feedback cycle while working on the implementation)
# Override the setup script of stdenv. Useful for testing new
# versions of the setup script without causing a rebuild of
# everything.
#
# Example:
# randomPkg = import ../bla { ...
# stdenv = overrideSetup stdenv ../stdenv/generic/setup-latest.sh;
# };
overrideSetup = stdenv: setupScript: stdenv.override { inherit setupScript; };
or stdenv.override { setupScript = ./pkgs/stdenv/generic/setup.sh; }
Issue description
Working on
setup.sh
is pretty awful. Unless you cobble together your own workflow for it, it looks likeThis iteration cycle is longer than it needs to be and makes adequate testing practically infeasible to the point where we don't do it.
Goal
Before doing significant work on
setup.sh
I think we should pay attention to the developer experience.Describe when this issues should be considered done
setup.sh
for a single derivation, to allow experimentation (shortest feedback cycle while working on the implementation)