~ruther/guix-local

749d2638a1d9320197b8666d034182f65f5521a7 — Giacomo Leidi 7 months ago 6e7d383
gnu: Add elixir-phoenix-live-view.

* gnu/packages/elixir-web.scm (elixir-phoenix-live-view): New variable.

Change-Id: I8e2af57ba8337cbf2fc3e0e2abd3f6a469e66385
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 52 insertions(+), 0 deletions(-)

M gnu/packages/elixir-web.scm
M gnu/packages/elixir-web.scm => gnu/packages/elixir-web.scm +52 -0
@@ 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")