Commit Graph

9 Commits

Author SHA1 Message Date
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
Philip Munksgaard
a8ce1c116c
livebook: 0.12.0 -> 0.12.1 2024-01-16 08:28:27 +01:00
Alexandru Scvortov
da08af643a livebook: 0.11.3 -> 0.12.0 2023-12-24 21:04:45 +00:00
Alexandru Scvortov
fa54eeea5c livebook: add systemd user service, test, and docs
Co-authored-by: Yt <happysalada@tuta.io>
2023-10-31 07:31:18 +00:00
Alexandru Scvortov
318af65e51 livebook: 0.11.1 -> 0.11.3 2023-10-29 13:52:12 +00:00
Alexandru Scvortov
fe46175bf2 livebook: 0.10.0 -> 0.11.1 2023-10-11 17:33:20 +01:00
Philip Munksgaard
94d894f3ef
livebook: 0.9.2 -> 0.10.0 2023-07-18 22:41:09 +02:00
happysalada
6a050b80fa fetchMixDeps: transition to hash 2023-06-05 09:29:32 -04:00
Philip Munksgaard
1fca3245e7 livebook: init at 0.9.2
This commit adds a package for the [livebook](https://livebook.dev) interactive
Elixir notebook environment.

Created with inspiration from
https://github.com/hauleth/nix-elixir/blob/master/pkgs/livebook.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-06-04 17:40:06 -04:00