teslamate: keep Erlang release cookie (removeCookie = false)
The Nix mixRelease strips releases/COOKIE by default and expects RELEASE_COOKIE at runtime, but teslamate's start script reads the file and crash-loops without it. teslamate is single-node (no distributed Erlang exposed beyond :4000), so keeping the build-generated cookie in the release is the simplest self-contained fix. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
18dc9a143c
commit
191be1b2cf
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ let
|
|||
pname = "teslamate";
|
||||
inherit version src elixir;
|
||||
|
||||
# Keep the build-generated Erlang cookie in the release. mixRelease
|
||||
# strips it by default (expecting RELEASE_COOKIE at runtime), but the
|
||||
# start script reads releases/COOKIE. teslamate is single-node (no
|
||||
# distributed Erlang exposed), so a baked-in cookie is fine.
|
||||
removeCookie = false;
|
||||
|
||||
mixFodDeps = beamPackages.fetchMixDeps {
|
||||
pname = "mix-deps-teslamate";
|
||||
inherit src version elixir;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue