Create a new channel as a copy of main.
Rename main to:
Delete main? This cannot be undone.
rec { path = "@testPath@"; mkDerivation = args: derivation ({ system = builtins.currentSystem; PATH = path; } // args); }