By default we cd automatically to the project root (as determined by flake-root module) before launching the script. It should be possible to disable this feature via a per-script option.
We need this for defining scripts like ghcid which can take arguments that are relative paths.
By default we
cd
automatically to the project root (as determined byflake-root
module) before launching the script. It should be possible to disable this feature via a per-script option.We need this for defining scripts like
ghcid
which can take arguments that are relative paths.https://github.com/Platonic-Systems/mission-control/blob/d07854a616f559370b71c1c440d916ab6869f084/nix/wrapper.nix#L42-L44