DeterminateSystems / riff

Riff automatically provides external dependencies for Rust projects, with support for other languages coming soon.
https://riff.sh
Mozilla Public License 2.0
486 stars 13 forks source link

Add 'generate' command to write flake.{nix,lock} to the project directory #94

Closed edolstra closed 2 years ago

edolstra commented 2 years ago

It also has a --stdout option to write flake.nix to stdout, which may be useful to see what riff is doing.

Unfortunately, flake.nix is not pretty-printed, so the output is rather ugly.

linear[bot] commented 2 years ago
DS-211 fsm: Add command to generate a flake.nix

This could be useful for users to nixify an existing project. Since we're already generating a temporary flake.nix, this should be pretty easy to implement.

grahamc commented 2 years ago

I think we will want this, but an important early feature of Riff is the network effect of dependencies defining their own inputs, and the Riff dependency tree becoming richer automatically.

Creating a path "out" of Riff today sort of implies that the goal is to stop using it. I could see a future where we have a really nicely defined workflow from Riff -> pure and good Nix use, but I don't want to go down that road today.

I'm going to close this for now and mark the ticket for revisiting in a few weeks.