I am trying to build a nixos service for umami
analytics
This is a yarn package whose build instructions depend on setting DB credentials and running a migration, then generating runtime code from the schema
I can think of three strategies:
- Use a mutable directory and propagate build tools, use yarn tooling to download deps, running the final build in service start
- Run a build in a development environment and include the generated files as a patch
- Run an ‘ephemeral’ postgres during the build
I’m pursuing 3 right now, but wow it seems like a lot of work