From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wMlLL14Sk1+ORwAA0tVLHw (envelope-from ) for ; Fri, 23 Oct 2020 17:26:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2BlWK14Sk1/FBgAAbx9fmQ (envelope-from ) for ; Fri, 23 Oct 2020 17:26:54 +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 5B67F94043B for ; Fri, 23 Oct 2020 17:26:53 +0000 (UTC) Received: from localhost ([::1]:33378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW0q4-0004ln-CG for larch@yhetil.org; Fri, 23 Oct 2020 13:26:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kW0pM-0003Z7-RE for guix-patches@gnu.org; Fri, 23 Oct 2020 13:26:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kW0pM-0000R6-3O for guix-patches@gnu.org; Fri, 23 Oct 2020 13:26:08 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kW0pM-0000Fz-00 for guix-patches@gnu.org; Fri, 23 Oct 2020 13:26:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44174] [PATCH 15/16] gnu: Add hledger. Resent-From: Carlo Holl Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Oct 2020 17:26: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.1603473952855 (code B ref 44174); Fri, 23 Oct 2020 17:26:07 +0000 Received: (at 44174) by debbugs.gnu.org; 23 Oct 2020 17:25:52 +0000 Received: from localhost ([127.0.0.1]:58291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW0p6-0000Dd-2K for submit@debbugs.gnu.org; Fri, 23 Oct 2020 13:25:52 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW0WF-000878-8Z for 44174@debbugs.gnu.org; Fri, 23 Oct 2020 13:06:23 -0400 Received: by mail-pg1-f196.google.com with SMTP id g12so929300pgm.8 for <44174@debbugs.gnu.org>; Fri, 23 Oct 2020 10:06:23 -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=EzWTlNDRv5xaftkFm40pYAsI27s78OAzWGfrrx6V95k=; b=jCKD7xvxHCtFH9a3+/dhaRaOqNlc5ql114HlaaJbhbNde2pXI+ZCzxHCycjodamsP4 K8cUJKFWd9IDcScDaFBD0NnhXmM0Q2ikCfs+NAGT+nWAiiT8vuI/sc2fTmvEyAHdG+BB 9RrxfzSU8L8cYtscy2FROH06mYd3xDHb6zm5AQqUZwa1cevEXZFtxe1agAy35shKFIgb hXyn/GdCaEYuiHAQ+8zmOwsk0XULXnQ+JaXkhkmd4N9j/hJUTr1uJYk6B3ZP/G0BzKZV e4/DkziWPxsuuygkiceJwhAokergZVYXAmAaTIemTgK3yAjxDxlIH7RrY/YjgnxKEO9G 04/A== 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=EzWTlNDRv5xaftkFm40pYAsI27s78OAzWGfrrx6V95k=; b=Kp0W3hXZ4xQAd6003JOguBLLlP9/8ygGawG7iW+rUOgc+JgksySjR6/UJafrnUjErp P/ds++s2hpXARHwKkP0ffndN1xINqfVU4wvZK7u+wnUPC/FtNGtPZMTWkEsAAvM7t31Z tP0EOWBDh/HTHNYmJVS+FSRmvKPmwSgUdgzotdTzYwrKrnMNhRR2rcds7zb2sXXL5sFK z9S1T7FQtck5DL+7FUYPxod75KJRuvI6ERNaWVB7HzOdr3iJqqDaxyknQeo/OE5fOhQt /PA6cmj7YDmmfYHxEZznMaXymc4e+a/4kekuTNk332hwz0A9K/lyiB7sce8VFQTFwbKy WbEA== X-Gm-Message-State: AOAM531J3uzQ4y9iQvvwdALWKClRay3UQbT13T6MRn6uXaZkFf3rZtBF n/N68rQNjw+x63bcYtiUmYsrXO7x3ts= X-Google-Smtp-Source: ABdhPJzbNDaWmsCgo3Qe5gKfhUE/hpl+UOd+9DfdZwhPFood8GaVotTcyDCSecBRO7Ui+dL4pGS/+Q== X-Received: by 2002:a17:90a:3e4e:: with SMTP id t14mr3706970pjm.217.1603472777422; Fri, 23 Oct 2020 10:06:17 -0700 (PDT) Received: from cehdev.hsd1.ca.comcast.net ([2603:3024:1704:300::7ae9]) by smtp.gmail.com with ESMTPSA id q10sm2976825pjd.6.2020.10.23.10.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 10:06:16 -0700 (PDT) From: Carlo Holl Date: Fri, 23 Oct 2020 10:05:43 -0700 Message-Id: <20201023170544.9860-15-carloholl@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201023170544.9860-1-carloholl@gmail.com> References: <20201023170544.9860-1-carloholl@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Fri, 23 Oct 2020 13:25:42 -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: scn0 X-Spam-Score: 6.59 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=jCKD7xvx; 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: Yes X-TUID: P1+jhBBtduyJ --- gnu/packages/finance.scm | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm index 4397cf8ba8..15a86b8688 100644 --- a/gnu/packages/finance.scm +++ b/gnu/packages/finance.scm @@ -45,6 +45,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 +73,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 +174,65 @@ 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