~ruther/guix-local

3cfdb9e030138c130b0d1f44491820dd9203a1ad — Giacomo Leidi 6 months ago 0922793
gnu: Add elixir-plug.

* gnu/packages/elixir-web.scm (elixir-plug): New variable.

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

M gnu/packages/elixir-web.scm
M gnu/packages/elixir-web.scm => gnu/packages/elixir-web.scm +27 -0
@@ 47,6 47,33 @@ implementing crypto-related functionality for the web, used by Plug.")
    (home-page "https://hexdocs.pm/plug_crypto/")
    (license license:asl2.0)))

(define-public elixir-plug
  (package
    (name "elixir-plug")
    (version "1.18.1")
    (source
     (origin
       (method url-fetch)
       (uri (hexpm-uri "plug" version))
       (sha256
        (base32 "1hkcahx1l6yi1hcxn7lw6cbcscwdrwrjsza3cjsj5d7j1nvpv9ap"))))
    (build-system mix-build-system)
    (propagated-inputs (list elixir-mime elixir-plug-crypto erlang-telemetry))
    (synopsis "Compose web applications with functions")
    (description "Plug is:

@itemize
@item A specification for composing web applications with functions
@item Connection adapters for different web servers in the Erlang VM
@end itemize

In other words, Plug allows you to build web applications from small pieces and
run them on different web servers.  Plug is used by web frameworks such as
Phoenix to manage requests, responses, and websockets.  This documentation will
show some high-level examples and introduce the Plug's main building blocks.")
    (home-page "https://hexdocs.pm/plug/")
    (license license:asl2.0)))

(define-public elixir-websock
  (package
    (name "elixir-websock")