summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/elixir-web.scm52
1 files changed, 52 insertions, 0 deletions
diff --git a/gnu/packages/elixir-web.scm b/gnu/packages/elixir-web.scm
index 54dbb0dfa7..34a1c3bade 100644
--- a/gnu/packages/elixir-web.scm
+++ b/gnu/packages/elixir-web.scm
@@ -434,6 +434,58 @@ framework.")
(home-page "https://hexdocs.pm/phoenix_live_reload/")
(license license:expat)))
+(define-public elixir-phoenix-live-view
+ (package
+ (name "elixir-phoenix-live-view")
+ (version "1.1.13")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (hexpm-uri "phoenix_live_view" version))
+ (sha256
+ (base32 "1v7p6q0lz9fzfyj9w4kwbyqi1vqdzsdllaw3xvw9whdqfcsyj1lx"))))
+ (build-system mix-build-system)
+ (arguments
+ ;; Tests fail with:
+ ;;
+ ;; [warning] Could not start Phoenix live-reload because we cannot listen
+ ;; to the file system.
+ ;; You don't need to worry! This is an optional feature used during
+ ;; development to refresh your browser when you save files and it does not
+ ;; affect production.
+ (list #:tests? #f))
+ (native-inputs
+ (list elixir-html-entities
+ elixir-phoenix-live-reload))
+ (propagated-inputs
+ (list elixir-floki
+ elixir-jason
+ elixir-phoenix
+ elixir-phoenix-html
+ elixir-phoenix-template
+ elixir-phoenix-view
+ elixir-plug
+ erlang-telemetry))
+ (synopsis "Rich, real-time user experiences with server-rendered HTML")
+ (description "LiveView brings a unified experience to building web
+applications. You no longer have to split work between client and server,
+across different toolings, layers, and abstractions. Instead, LiveView
+enriches the server with a declarative and powerful model while keeping your
+code closer to your data (and ultimately your source of truth):
+
+@itemize
+@item Declarative server side rendering
+@item Rich templating language
+@item Diffs over the wire
+@item Live form validation
+@item File uploads with progress indicators
+@item Optimistic updates and transitions
+@item Live navigation
+@item Latency simulator
+@end itemize")
+ (home-page "https://hexdocs.pm/phoenix_live_view/")
+ (license license:expat)))
+
(define-public elixir-phoenix-pubsub
(package
(name "elixir-phoenix-pubsub")