From patchwork Sun Dec 6 16:14:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 25603 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 F359727BC01; Sun, 6 Dec 2020 16:16:04 +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 B72F527BC00 for ; Sun, 6 Dec 2020 16:16:02 +0000 (GMT) Received: from localhost ([::1]:33786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1klwhd-0003oo-Kk for patchwork@mira.cbaines.net; Sun, 06 Dec 2020 11:16:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1klwgi-0003oO-Pq for guix-patches@gnu.org; Sun, 06 Dec 2020 11:15:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1klwgg-0005PJ-DL for guix-patches@gnu.org; Sun, 06 Dec 2020 11:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1klwgg-0003sT-8d for guix-patches@gnu.org; Sun, 06 Dec 2020 11:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44954] [PATCH] Add hledger-web and dependencies. Resent-From: paul Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Dec 2020 16:15:02 +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: Timothy Sample Cc: 44954@debbugs.gnu.org Received: via spool by 44954-submit@debbugs.gnu.org id=B44954.160727129314849 (code B ref 44954); Sun, 06 Dec 2020 16:15:02 +0000 Received: (at 44954) by debbugs.gnu.org; 6 Dec 2020 16:14:53 +0000 Received: from localhost ([127.0.0.1]:50978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwgO-0003rH-7c for submit@debbugs.gnu.org; Sun, 06 Dec 2020 11:14:53 -0500 Received: from latitanza.investici.org ([82.94.249.234]:45977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1klwgK-0003r6-Jl for 44954@debbugs.gnu.org; Sun, 06 Dec 2020 11:14:43 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4Cps326SWLz8sf9; Sun, 6 Dec 2020 16:14:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1607271278; bh=dnQmF+ih/abjrm/Awp5bZgnvfruefXkFJWsPpd7932w=; h=To:Cc:References:From:Subject:Date:In-Reply-To:From; b=pf2jip33eQNSDqi/F46Ca04hakLI+aRHS5Erayzt9+gfxXVBb11s9PlIgmLVfcURh QcrU/vmt2eWves9dN4mo48RFdGs9srL5/E5onombLwSnfSdbfPIjZk4ry6hzKPvttc pYhhBt5nOzL9FXUGdSj/wRd3Oh23/yYbEmRy2b8A= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4Cps324Ds6z8sf5; Sun, 6 Dec 2020 16:14:38 +0000 (UTC) References: <2f1f6cef-22b5-8706-076d-bebac71d450d@autistici.org> <875z5iubgk.fsf@ngyro.com> <533e8db8-e14a-1da1-e018-c61000cd6629@autistici.org> <87wnxxqqsc.fsf@ngyro.com> <87mtyrqz47.fsf@ngyro.com> From: paul Message-ID: <3ff42945-87f4-dc70-57e6-b13b4c77c47d@autistici.org> Date: Sun, 6 Dec 2020 17:14:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.5.0 MIME-Version: 1.0 In-Reply-To: <87mtyrqz47.fsf@ngyro.com> Content-Language: en-US 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 Hi Tim, On 12/6/20 6:31 AM, Timothy Sample wrote: > I have the new patches all lined up and ready to go. Just one more > question. There should be a line for you in the copyright header of > each changed file. I’m happy to add it, but I want to make sure it’s > okay. The Git author field of the commits has > > Giacomo Leidi > > Shall I use that for the copyright headers? yes, thank you. I'm not sure if it'll help but I'm attaching the patches with the copyright header properly added, so that you may reuse them if/where necessary. Cheers, Giacomo From 112628c497db41d293b8b168d8be9e642b6b1ed7 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Fri, 4 Dec 2020 20:15:45 +0100 Subject: [PATCH 9/9] gnu: Add hledger-web. * gnu/packages/finance.scm (hledger-web): New variable. --- gnu/packages/finance.scm | 57 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index a79c70d1e0..ac2e2adfad 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Vinicius Monego ;;; Copyright © 2020 Carlo Holl +;;; Copyright © 2020 Giacomo Leidi ;;; ;;; This file is part of GNU Guix. ;;; @@ -1648,3 +1649,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))) -- 2.29.2