inscapist / ruby-nix

Generates reproducible ruby/bundler app environment with Nix
MIT License
114 stars 5 forks source link

Repo Wiki? #30

Open yorqat opened 1 year ago

yorqat commented 1 year ago

Would be nice if we have instructions on how to use ruby-nix on new projects or updating old projects to use flakes

inscapist commented 1 year ago

Good suggestion. I will do that but it won't be soon.

Let me know if you have questions that you think is good to clarify in the README too.

nerd2ninja commented 7 months ago

Good suggestion. I will do that but it won't be soon.

Let me know if you have questions that you think is good to clarify in the README too.

In the Readme you have

The gist And then some code which I'm sort of left to assume is meant to be a default.nix file right? For users who aren't as familiar with nixOS (Not to say that I am familiar I've just been tearing my hair out trying to read documentation the past few days) it could be helpful to specify.

inscapist commented 5 months ago

@nerd2ninja sorry I missed this.

Understandable concern. Instead of the gist (which is for seasoned Nix users), a better place to start is at https://github.com/inscapist/ruby-nix/blob/main/examples/simple-app/flake.nix

You can either run nix flake init -t github:inscapist/ruby-nix/main or simply copy the flake.nix into your own project and start by customizing the flake.nix, adding your own packages, etc.

When i have time, I may create a devenv.sh version, which may be easier to understand and customize effectively