From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MDj5L1Mlnl+HSgAA0tVLHw (envelope-from ) for ; Sun, 01 Nov 2020 03:02:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6HbKK1Mlnl+OYwAA1q6Kng (envelope-from ) for ; Sun, 01 Nov 2020 03:02:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2FB8F9403A0 for ; Sun, 1 Nov 2020 03:02:43 +0000 (UTC) Received: from localhost ([::1]:58722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZ3di-0002NB-5b for larch@yhetil.org; Sat, 31 Oct 2020 23:02:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35588) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZ3cC-00019u-CG for guix-patches@gnu.org; Sat, 31 Oct 2020 23:01:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51941) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZ3cC-000874-0G for guix-patches@gnu.org; Sat, 31 Oct 2020 23:01:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZ3cB-00015x-U8 for guix-patches@gnu.org; Sat, 31 Oct 2020 23:01:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44174] [PATCH v2 15/15] gnu: Add hledger. Resent-From: Carlo Holl Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 01 Nov 2020 03:01:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44174@debbugs.gnu.org Cc: Carlo Holl Received: via spool by 44174-submit@debbugs.gnu.org id=B44174.16041996574088 (code B ref 44174); Sun, 01 Nov 2020 03:01:07 +0000 Received: (at 44174) by debbugs.gnu.org; 1 Nov 2020 03:00:57 +0000 Received: from localhost ([127.0.0.1]:35240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZ3c1-00013m-8f for submit@debbugs.gnu.org; Sat, 31 Oct 2020 23:00:57 -0400 Received: from mail-pj1-f67.google.com ([209.85.216.67]:52680) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZ2ip-0007xA-4K for 44174@debbugs.gnu.org; Sat, 31 Oct 2020 22:03:55 -0400 Received: by mail-pj1-f67.google.com with SMTP id mp12so1395151pjb.2 for <44174@debbugs.gnu.org>; Sat, 31 Oct 2020 19:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SKSP1ulUc8r+rxj/eKQgeZ43w5G3MRA+Cy9ePWzUlRU=; b=XrEfghjrT5ST6DXHSGWuQWx55hGUdeQIc/OPaT/Rs4QZXU4R5VSSvQXMAi4jlywGHp Vsw/9eFK+Ids2fsWTYtjK646hjRmjfUitQhZsIvXQ/u/0wV+oGGF+A8UF7UWVKimCHIW SHBb5uZKawBmayO04d+wFScvtkqbYwIRVvzGDM4sSJ8OjLIg3IvawQMPreGrO0lEDgnI 32IpjY/+vAjIq9tEzElOa2cifseVwSgeYHZEGoCuOPzwDWnPf79xqS48A9HYDW3ACm91 cMNoFjPrudKM8hQcEWfAoW9dFcwdBiueHRFf+AIv+ekJdS35gxGFZIBvViO5iwxHYETj NxEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SKSP1ulUc8r+rxj/eKQgeZ43w5G3MRA+Cy9ePWzUlRU=; b=XhJTawu6f0mqKP1ryqelmxlURRgHnmiNnHGKsO8/bigLZ1uH73INcY/XfC5+6Dwt4b hfaKofkH9J5UkVHv7ygimulXXigLgjhUi8/akwGIg4/puBGkYIYyYh0h4Mh+G+3U7GMx 5AVgaELWzZwlqlnZhgZIu7BGt/g7ZNRTSZAfgOFFphP633uvaghzrq1RrYrpBochAN3p LMV4p1s+Y4Q/M7lz7f3gfqFciinwffbtAb2mXsdJgnvJ3d6BnoSVFk9miDuj1+rilrtm k7DuSdPOBG7LGpEBhKIwesD8bd7XbbdEFOBjjHW0XvNuQKWxdHoAZ/c08tJvBKzlVSvQ Myag== X-Gm-Message-State: AOAM530sIoJB+UnmL0qkjOPG+Y78T9+UHsLVJlIBoAaBbfzUNo+EFcdZ HGHzMSXEB8sLIkTQtgC1Lvdr086WGJc= X-Google-Smtp-Source: ABdhPJwVNONJw6HYeIex/Fq/W5phXdN8QXpRTtXk6OlPAE4Yz/0hewXU5fbsSL1OIrIm0B6jvkDXbA== X-Received: by 2002:a17:902:9a44:b029:d3:f10c:944a with SMTP id x4-20020a1709029a44b02900d3f10c944amr15274149plv.11.1604196229254; Sat, 31 Oct 2020 19:03:49 -0700 (PDT) Received: from cehdev.hsd1.ca.comcast.net ([2603:3024:1704:300::8401]) by smtp.gmail.com with ESMTPSA id n27sm3051213pfq.59.2020.10.31.19.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Oct 2020 19:03:48 -0700 (PDT) From: Carlo Holl Date: Sat, 31 Oct 2020 19:02:36 -0700 Message-Id: <20201101020236.1108-16-carloholl@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201101020236.1108-1-carloholl@gmail.com> References: <20201101020236.1108-1-carloholl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Sat, 31 Oct 2020 23:00:46 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=XrEfghjr; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.09 X-TUID: wx9cfYChLu5i * gnu/packages/finance.scm (hledger): New variable. --- gnu/packages/finance.scm | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 4397cf8ba8..ade4fc56fb 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2020 Tom Zander ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2020 Vinicius Monego +;;; Copyright © 2020 Carlo Holl ;;; ;;; This file is part of GNU Guix. ;;; @@ -45,6 +46,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system emacs) + #:use-module (guix build-system haskell) #:use-module (guix build-system python) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system go) @@ -72,6 +74,9 @@ #:use-module (gnu packages graphviz) #:use-module (gnu packages groff) #:use-module (gnu packages gtk) + #:use-module (gnu packages haskell-check) + #:use-module (gnu packages haskell-web) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages jemalloc) #:use-module (gnu packages libedit) #:use-module (gnu packages libevent) @@ -170,6 +175,64 @@ of the bitcoin protocol. This package provides the Bitcoin Core command line client and a client based on Qt.") (license license:expat))) +(define-public hledger + (package + (name "hledger") + (version "1.19.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/hledger/hledger-" + version + ".tar.gz")) + (sha256 + (base32 + "0wfsyf2q1kf90mj3lxs0m5ghj153axmpkc8xfy12vkz5imnyphfm")))) + (build-system haskell-build-system) + (inputs + `(("ghc-decimal" ,ghc-decimal) + ("ghc-diff" ,ghc-diff) + ("ghc-aeson" ,ghc-aeson) + ("ghc-ansi-terminal" ,ghc-ansi-terminal) + ("ghc-base-compat-batteries" + ,ghc-base-compat-batteries) + ("ghc-cmdargs" ,ghc-cmdargs) + ("ghc-data-default" ,ghc-data-default) + ("ghc-extra" ,ghc-extra) + ("ghc-hashable" ,ghc-hashable) + ("ghc-hledger-lib" ,ghc-hledger-lib) + ("ghc-lucid" ,ghc-lucid) + ("ghc-math-functions" ,ghc-math-functions) + ("ghc-megaparsec" ,ghc-megaparsec) + ("ghc-old-time" ,ghc-old-time) + ("ghc-pretty-show" ,ghc-pretty-show) + ("ghc-regex-tdfa" ,ghc-regex-tdfa) + ("ghc-safe" ,ghc-safe) + ("ghc-shakespeare" ,ghc-shakespeare) + ("ghc-split" ,ghc-split) + ("ghc-tabular" ,ghc-tabular) + ("ghc-tasty" ,ghc-tasty) + ("ghc-temporary" ,ghc-temporary) + ("ghc-timeit" ,ghc-timeit) + ("ghc-unordered-containers" + ,ghc-unordered-containers) + ("ghc-utf8-string" ,ghc-utf8-string) + ("ghc-utility-ht" ,ghc-utility-ht) + ("ghc-wizards" ,ghc-wizards))) + (home-page "https://hledger.org") + (synopsis "Command-line interface for the hledger accounting system") + (description "The command-line interface for the hledger accounting +system. Its basic function is to read a plain text file describing financial +transactions and produce useful reports. + +hledger is a robust, cross-platform set of tools for tracking money, time, +or any other commodity, using double-entry accounting and a simple, editable +file format, with command-line, terminal and web interfaces. It is a Haskell +rewrite of Ledger, and one of the leading implementations of Plain Text Accounting. +Read more at: @url{https://hledger.org}") + (license license:gpl3))) + (define-public homebank (package (name "homebank") -- 2.28.0