From patchwork Fri Dec 4 19:15:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 25567 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E599627BBFD; Fri, 4 Dec 2020 20:30:59 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DBFF127BBFC for ; Fri, 4 Dec 2020 20:30:58 +0000 (GMT) Received: from localhost ([::1]:48406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klHjF-0006oH-Px for patchwork@mira.cbaines.net; Fri, 04 Dec 2020 15:30:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klGZp-0004pS-Ef for guix-patches@gnu.org; Fri, 04 Dec 2020 14:17:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klGZl-0003zP-H0 for guix-patches@gnu.org; Fri, 04 Dec 2020 14:17:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klGZl-000073-BZ for guix-patches@gnu.org; Fri, 04 Dec 2020 14:17:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44954] [PATCH 9/9] gnu: Add hledger-web. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 04 Dec 2020 19:17:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44954 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44954@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 44954-submit@debbugs.gnu.org id=B44954.1607109396334 (code B ref 44954); Fri, 04 Dec 2020 19:17:05 +0000 Received: (at 44954) by debbugs.gnu.org; 4 Dec 2020 19:16:36 +0000 Received: from localhost ([127.0.0.1]:45875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klGZH-000059-TQ for submit@debbugs.gnu.org; Fri, 04 Dec 2020 14:16:36 -0500 Received: from [198.167.222.108] (port=53387 helo=devianza.investici.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klGZD-0008VB-J5 for 44954@debbugs.gnu.org; Fri, 04 Dec 2020 14:16:32 -0500 Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4Cnj9c212fz6vXm; Fri, 4 Dec 2020 19:16:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1607109380; bh=Lb3Kpd2/2qVSI0v2Game0VLWCyQ52oOklUy1i0FXMrc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eOsNholzEML/j6uTTYwujTU5Zbob3VLzYchslSGqpbh42Zz6OP7n+mLnNHn0BBIOa WiaMjotpKEfIUkHXhHrgt/nGNCPFvLjch0M1YL+vpep4B1v5t+4C9yOMGDasyPPXoF COyeQnjM+86nSpVpN7LrwgCLa/lq/x+4j+UH6BRc= Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4Cnj9c0Dvfz6vXR; Fri, 4 Dec 2020 19:16:19 +0000 (UTC) From: Giacomo Leidi Date: Fri, 4 Dec 2020 20:15:45 +0100 Message-Id: <20201204191545.24772-9-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201204191545.24772-1-goodoldpaul@autistici.org> References: <20201204191545.24772-1-goodoldpaul@autistici.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/finance.scm (hledger-web): New variable. --- gnu/packages/finance.scm | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index a79c70d1e0..8c7bb7a641 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -1648,3 +1648,59 @@ 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.14.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/hledger-web/hledger-web-" + version + ".tar.gz")) + (sha256 + (base32 + "0w59nr7mj0nx8z44cvhy1rhlj5rmx0wq4p5nfl4dycfmp7jwvsm1")))) + (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-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-json" ,ghc-json) + ("ghc-megaparsec" ,ghc-megaparsec) + ("ghc-semigroups" ,ghc-semigroups) + ("ghc-shakespeare" ,ghc-shakespeare) + ("ghc-wai" ,ghc-wai) + ("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)))