Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix environment deployment with built-in gems installation #5342

Merged

Conversation

fchagasjr
Copy link
Contributor

What github issue is this PR for, if any?

Resolves #5341

What changed, and why?

  • Update README instructions on how to setup a Nix environment for the project
  • Fix the flake.nix file to handle a proper environment creation and overriding platform-specific gems installation
  • Add the auto-stop database server functionality when exiting the environment
  • Created environment is fully self-contained, which means that all gems and dependencies are sourced by the Nix store
  • Added the ruby platform on Gemfile.lock to include non-platform-specific gems

How is this tested? (please write tests!) 💖💪

No tests were created since only files related to the Nix environment creation were modified
Passed all project tests, checking that not previous functionality was lost

Environment properly built and server running after nix develop:
Screen Shot 2023-11-07 at 10 18 49 PM

All gems and dependencies being sourced by Nix store:
Screen Shot 2023-11-07 at 10 22 12 PM

Feelings gif (optional)

Carlton dance

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Nov 8, 2023
@fchagasjr fchagasjr changed the title Nix platform specific gems installation Nix environment deployment with built-in gems installation Nov 8, 2023
@fchagasjr fchagasjr marked this pull request as ready for review November 8, 2023 04:16
@compwron compwron merged commit 810f157 into rubyforgood:main Nov 9, 2023
11 checks passed
@fchagasjr
Copy link
Contributor Author

fchagasjr commented Nov 9, 2023

@compwron thank you! I'm not sure how many contributors are using Nix, but I hope it helps someone else.

@fchagasjr fchagasjr deleted the nix-platform-specific-gems-installation branch November 15, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Crashing project installation through Nix
2 participants