summaryrefslogtreecommitdiffstats
path: root/krebs/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-11-01 19:23:59 +0100
committerlassulus <lassulus@lassul.us>2022-11-01 19:39:34 +0100
commit015138925daaaccc57deec816ffe4534c0cdbe7e (patch)
treeee00116cf91b34f68da177973b3934802503e89c /krebs/2configs
parent94e9faa655883ec567335187f2684c46fb451da6 (diff)
reaktor2: remove duplicate ledger-add
fixes wrong merge c68da76ea1ffab8e012527383047bb3dc718b20f
Diffstat (limited to 'krebs/2configs')
-rw-r--r--krebs/2configs/reaktor2.nix22
1 files changed, 0 insertions, 22 deletions
diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix
index afaac9dae..41cfd7735 100644
--- a/krebs/2configs/reaktor2.nix
+++ b/krebs/2configs/reaktor2.nix
@@ -210,28 +210,6 @@ let
'';
};
}
- {
- pattern = ''^([\H-]*?):?\s+([+-][1-9][0-9]*)\s+(\S+)$'';
- activate = "match";
- arguments = [1 2 3];
- command = {
- env = {
- # TODO; get state as argument
- state_file = "${stateDir}/ledger";
- };
- filename = pkgs.writeDash "ledger-add" ''
- set -x
- tonick=$1
- amt=$2
- unit=$3
- printf '%s\n %s %d %s\n %s %d %s\n' "$(date -Id)" "$tonick" "$amt" "$unit" "$_from" "$(expr 0 - "''${amt#+}")" "$unit" >> $state_file
- ${pkgs.hledger}/bin/hledger -f $state_file bal -N -O csv \
- | ${pkgs.coreutils}/bin/tail +2 \
- | ${pkgs.miller}/bin/mlr --icsv --opprint cat \
- | ${pkgs.gnugrep}/bin/grep "$_from"
- '';
- };
- }
bedger-add
bedger-balance
hooks.sed