Hey folks, I make extensive use of nix-shell --run "pytest --foo --bar" style commands when using shell.nix files. I’ve recently switched to flakes for one of my projects. Now, I’d like to set up CI to run code formatting. Previously I would set up a CI action that runs nix-shell --run "ruff format .". What’s the appropriate way to do this with nix develop?
Through some poking around I’ve found nix develop --command, but it only works on executables, so no arguments, no command chaining, and so forth.
Think so. The old interface took a single arg which it then split, while the new interface takes multiple args which can be passed directly to the subprocess. Less parsing, more secure