From 0feb1af193b5e210124f82e4a721fc396241bcac Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Wed, 24 Sep 2025 10:31:07 +0200 Subject: [PATCH] gnu: Add elixir-phoenix-view. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/elixir-web.scm (elixir-phoenix-view): New variable. Change-Id: I3d54b8a8c66136cc54f773a1c1271f0f4fe59d74 Signed-off-by: Ludovic Courtès --- gnu/packages/elixir-web.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/elixir-web.scm b/gnu/packages/elixir-web.scm index bf1ea9a89166d31f963364c94041306bb7188951..3110d332f74836355216231c3eba7c55f8146eb3 100644 --- a/gnu/packages/elixir-web.scm +++ b/gnu/packages/elixir-web.scm @@ -448,6 +448,31 @@ engine.") (home-page "https://hexdocs.pm/phoenix_template/") (license license:expat))) +(define-public elixir-phoenix-view + (package + (name "elixir-phoenix-view") + (version "2.0.4") + (source + (origin + (method url-fetch) + (uri (hexpm-uri "phoenix_view" version)) + (sha256 + (base32 "02v2xd1h415kbf1ncclqx6acrbslh6i2gnrmfgjizwqlrqi216af")))) + (build-system mix-build-system) + (native-inputs + (list elixir-jason)) + (propagated-inputs (list elixir-phoenix-html elixir-phoenix-template)) + (synopsis "View layer in Phoenix v1.0-v1.6 apps") + (description "Within LiveView and HTML apps, @code{Phoenix.View} has fallen +out of fashion in favor of @code{Phoenix.Component}. See the \"Replaced by +@code{Phoenix.Component}\" section in the @code{Phoenix.View} module +documentation for more information and migration steps. + +If you want to render other formats, such as XML, @code{Phoenix.View} may still +be a useful addition to your projects.") + (home-page "https://hexdocs.pm/phoenix_view/") + (license license:expat))) + (define-public elixir-plug-crypto (package (name "elixir-plug-crypto")