Platonic-Systems / mission-control

A `flake-parts` module for your Nix devshell scripts
https://community.flake.parts/mission-control
MIT License
80 stars 11 forks source link

Add `cdToProjectRoot` option #27

Closed srid closed 1 year ago

srid commented 1 year ago

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.

https://github.com/Platonic-Systems/mission-control/blob/d07854a616f559370b71c1c440d916ab6869f084/nix/wrapper.nix#L42-L44