[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#44174] [PATCH v2 15/15] gnu: Add hledger.
From: |
Carlo Holl |
Subject: |
[bug#44174] [PATCH v2 15/15] gnu: Add hledger. |
Date: |
Sat, 31 Oct 2020 19:02:36 -0700 |
* 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 <tomz@freedommail.ch>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020 Carlo Holl <carloholl@gmail.com>
;;;
;;; 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
- [bug#44174] [PATCH v2 05/15] gnu: Add ghc-hspec-megaparsec., (continued)
- [bug#44174] [PATCH v2 05/15] gnu: Add ghc-hspec-megaparsec., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 07/15] gnu: Add ghc-only., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 08/15] gnu: Add ghc-text-short., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 06/15] gnu: Add ghc-lucid., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 10/15] gnu: Add ghc-uglymemo., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 09/15] gnu: Add ghc-tabular., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 11/15] gnu: Add ghc-wizards., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 12/15] gnu: Add ghc-cassava., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 13/15] gnu: Add ghc-cassava-megaparsec., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 14/15] gnu: Add ghc-hledger-lib., Carlo Holl, 2020/10/31
- [bug#44174] [PATCH v2 15/15] gnu: Add hledger.,
Carlo Holl <=