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

Use nix + direnv to bootstrap book environment #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcoziti
Copy link

@marcoziti marcoziti commented Mar 5, 2025

Use Nix to bootstrap book rendering environment

Benefit:

  • Reproducible and isolated environment without affecting polluting the operating system environment
  • Support Windows, Linux and MacOS
  • Tools to support producing html, e-pub, pdf format

How-to:

@pedropark99
Copy link
Owner

Uhmm, I'm curious, why using direnv in this instance? Because, in theory, all dependencies necessary to compile the book can be installed from Nix.

@marcoziti
Copy link
Author

You are right that Nix would meet the need of reproducible environment by running nix-shell. This combination (direnv + Nix) provides a seamless, automated, and consistent way to bootstrap/unload project environment when switching between different projects (folders).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants