nixpkgs/nixos/modules/services/development
Philip Munksgaard 897d5670a3
livebook: Use mix release to build instead of escript
The current build of livebook does not work with the new [Livebook
Teams](https://livebook.dev/teams/) features. The problem can be observed by
running the current version of livebook, adding a new team and going to the team
page. The process will crash and the team page will show a 500 error.

The base of the problem is that the escript build method is not officially
supported. This commit changes the livebook package to use the `mix release`
workflow, which is also the one used to build the official Docker container.

Unfortunately, the binary built with `mix release` does not support command line
arguments like the `escript` binary does. Instead, users need to pass in most of
the configuration as environment variables, as documented
[here](https://hexdocs.pm/livebook/readme.html#environment-variables). As a
result, this commit also changes the Livebook service to reflect this new way of
configuring Livebook.

Finally, the Livebook release configuration specifically excludes the
ERTS (Erlang Runtime System), which means that the resulting release cannot run
without Erlang installed.

I have tested the results (both of the package and the service) locally.
2024-01-26 20:19:46 +01:00
..
jupyter treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
jupyterhub
rstudio-server treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
athens.md nixos/athens: init at 0.12.1 2023-11-07 14:43:11 +01:00
athens.nix nixos/athens: init at 0.12.1 2023-11-07 14:43:11 +01:00
blackfire.md nixos/blackfire: convert manual chapter to MD 2023-01-10 10:31:55 +01:00
blackfire.nix nixos/manual: render module chapters with nixos-render-docs 2023-01-27 20:07:34 +01:00
bloop.nix
distccd.nix treewide: use mkPackageOption 2023-11-27 01:28:36 +01:00
gemstash.nix nixos/gemstash: init module 2023-03-07 15:56:56 +11:00
hoogle.nix
livebook.md livebook: Use mix release to build instead of escript 2024-01-26 20:19:46 +01:00
livebook.nix livebook: Use mix release to build instead of escript 2024-01-26 20:19:46 +01:00
lorri.nix nixos/lorri: install direnv 2023-04-14 15:19:34 +02:00
nixseparatedebuginfod.nix nixseparatedebuginfod: add module and nixos test 2024-01-01 13:42:13 +01:00
zammad.nix Merge pull request #269469 from NetaliDev/zammad-update 2023-12-05 09:29:51 +01:00