diff mbox series

[bug#44954,12/12] gnu: Add hledger-web.

Message ID 20201129223301.19210-12-goodoldpaul@autistici.org
State Accepted
Headers show
Series [bug#44954,01/12] gnu: ghc-doctest: Update to 0.16.3. | expand

Checks

Context Check Description
cbaines/submitting builds success
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Giacomo Leidi Nov. 29, 2020, 10:33 p.m. UTC
* gnu/packages/finance.scm (hledger-web): New variable.
---
 gnu/packages/finance.scm | 61 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index b02d39fa78..4dee1b8746 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -1648,3 +1648,64 @@  generate a variety of reports from them, and provides a web interface.")
     (synopsis "Emacs mode for beancount")
     (description
       "Emacs-beancount is an Emacs mode for the Beancount accounting tool.")))
+
+(define-public hledger-web
+  (package
+   (name "hledger-web")
+   (version "1.19.1")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (string-append
+           "https://hackage.haskell.org/package/hledger-web/hledger-web-"
+           version
+           ".tar.gz"))
+     (sha256
+      (base32
+       "03wak0dgxhf7y2mc2az4xcypgz1z1lf65vn6kj98z063pmlwp1b0"))))
+   (build-system haskell-build-system)
+   (inputs
+    `(("ghc-decimal" ,ghc-decimal)
+      ("ghc-aeson" ,ghc-aeson)
+      ("ghc-blaze-html" ,ghc-blaze-html)
+      ("ghc-blaze-markup" ,ghc-blaze-markup)
+      ("ghc-case-insensitive" ,ghc-case-insensitive)
+      ("ghc-clientsession" ,ghc-clientsession)
+      ("ghc-cmdargs" ,ghc-cmdargs)
+      ("ghc-conduit" ,ghc-conduit)
+      ("ghc-conduit-extra" ,ghc-conduit-extra)
+      ("ghc-data-default" ,ghc-data-default)
+      ("ghc-extra" ,ghc-extra)
+      ("ghc-hjsmin" ,ghc-hjsmin)
+      ("hledger" ,hledger)
+      ("ghc-hledger-lib" ,ghc-hledger-lib)
+      ("ghc-http-client" ,ghc-http-client)
+      ("ghc-http-conduit" ,ghc-http-conduit)
+      ("ghc-http-types" ,ghc-http-types)
+      ("ghc-megaparsec" ,ghc-megaparsec)
+      ("ghc-network" ,ghc-network)
+      ("ghc-shakespeare" ,ghc-shakespeare)
+      ("ghc-unix-compat" ,ghc-unix-compat)
+      ("ghc-unordered-containers"
+       ,ghc-unordered-containers)
+      ("ghc-utf8-string" ,ghc-utf8-string)
+      ("ghc-wai" ,ghc-wai)
+      ("ghc-wai-cors" ,ghc-wai-cors)
+      ("ghc-wai-extra" ,ghc-wai-extra)
+      ("ghc-wai-handler-launch"
+       ,ghc-wai-handler-launch)
+      ("ghc-warp" ,ghc-warp)
+      ("ghc-yaml" ,ghc-yaml)
+      ("ghc-yesod" ,ghc-yesod)
+      ("ghc-yesod-core" ,ghc-yesod-core)
+      ("ghc-yesod-form" ,ghc-yesod-form)
+      ("ghc-yesod-static" ,ghc-yesod-static)))
+   (home-page "https://hledger.org")
+   (synopsis
+    "Web-based user interface for the hledger accounting system")
+   (description
+    "This package provides a simple web-based user interface for
+the hledger accounting system, providing a more modern UI than
+the command-line or terminal interfaces.  It can be used as a local
+single-user UI, or as a multi-user UI for viewing/adding/editing on the web.")
+   (license license:gpl3)))