aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalte Brandy2019-11-07 21:42:12 +0100
committerMalte Brandy2019-11-07 21:42:12 +0100
commitea6a531a194730b22f1d098538ee7fc46b04b21a (patch)
tree1328acbe92758a977ed0958fcdb91bbdbc645236
parentb47d3b9fabcdf990d1c683b095c95f6f769c22e7 (diff)
downloadjali-master.tar.gz
jali-master.zip
Add shell.nix example to READMEHEADmaster
-rw-r--r--README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md
index 98c59d3..773793f 100644
--- a/README.md
+++ b/README.md
@@ -9,6 +9,40 @@ This is a small python3 program to import transactions from your bank via aqbank
9* `ledger` http://ledger-cli.org/ 9* `ledger` http://ledger-cli.org/
10* `aqbanking` http://www2.aquamaniac.de/sites/aqbanking/index.php 10* `aqbanking` http://www2.aquamaniac.de/sites/aqbanking/index.php
11 11
12### Shorcut with nix:
13
14Create the following file as `shell.nix` in your accounting repository and run `nix-shell`. (Bump jali version to HEAD commit hash of this repo to be up-to-date.)
15
16```nix
17with import <nixpkgs> {};
18let
19 andir = import (builtins.fetchTarball {
20 url = "https://github.com/andir/nixpkgs/archive/aqbanking.tar.gz";
21 sha256 = "06m7risi68jfqgv001ip77lzz6bylvvdn5j8sn845c54zpm6qp36";
22 }) {};
23 jali = with python36Packages; buildPythonApplication rec {
24 name = "${pname}-${version}";
25 pname = "jali";
26 doCheck = false;
27 version = "b47d3b9f";
28 src = fetchgit {
29 url = "https://git.darmstadt.ccc.de/jali/jali.git";
30 rev = version;
31 sha256 = "0l5h9hjri77zifx3x4khw7ncmmc9l9ppisdjilsfllzkabz4xjf4";
32 };
33 propagatedBuildInputs = [ jinja2 pendulum GitPython andir.aqbanking ];
34 };
35in stdenv.mkDerivation {
36 name = "buchhaltung";
37 buildInputs = [
38 hledger
39 haskellPackages.hledger-ui
40 ledger
41 jali
42 ];
43}
44```
45
12## Get started 46## Get started
13 47
14* Install `python3`, `ledger` and `aqbanking` 48* Install `python3`, `ledger` and `aqbanking`