Skip to content

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).

@pedropark99
Copy link
Owner

I will close this PR, because:

  • we just added a Nix Flake file to the project by @bengtfrost .
  • also, direnv is (in my personal understanding) unnecessary in this project.

Nonetheless, thank you for openning the discussion on "Let's have Nix on this project" !

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