add some scripts

This commit is contained in:
Ingolf Wagner 2021-04-19 07:43:55 +02:00
parent fcb6a5b05f
commit 49b51a01b6
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 34 additions and 18 deletions
system/desktop

View file

@ -149,6 +149,14 @@ let
-d '{ "weight" : '$weight', "date": "'$( ${pkgs.coreutils}/bin/date -Iseconds )'" }'
'';
isoToUtf8 = pkgs.writers.writeBashBin "iso-to-utf8" ''
input="$1"
TMP=$(mktemp)
${pkgs.glibc.bin}/bin/iconv -f ISO-8859-1 "$input" -t UTF-8 -o "$TMP"
mv "$TMP" "$input"
'';
in {
# ffmpeg scripts to encode movies
@ -197,6 +205,9 @@ in {
command = "insertCopyq";
})
isoToUtf8
hledger
hledger-ui
bank
(bank-old "2021")
(bank-old "2020")