From 4237d9f52e13c97e238f6178e61be0e7843abe51 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 13 Apr 2021 08:35:57 +0200 Subject: pkgs/sternenseemann/tep: add static list of additional chars This is currently mostly to add the dot character used as separator in dot time (). --- pkgs/sternenseemann/tep/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pkgs/sternenseemann') diff --git a/pkgs/sternenseemann/tep/default.nix b/pkgs/sternenseemann/tep/default.nix index 9778d536..16cd9cb3 100644 --- a/pkgs/sternenseemann/tep/default.nix +++ b/pkgs/sternenseemann/tep/default.nix @@ -1,4 +1,4 @@ -{ writeHaskell, writeBashBin, runCommandLocal +{ writeHaskell, writeBashBin, writeText, runCommandLocal , emoji-generic, utf8-light, attoparsec, text, bytestring , bemenu , fromTep ? "cut -d' ' -f1" @@ -10,8 +10,14 @@ let tepData = writeHaskell "tep-data" { libraries = [ emoji-generic utf8-light attoparsec text bytestring ]; } ./tepData.hs; + + static = writeText "static-tep.txt" '' + ยท dot time character + ''; + emojis = runCommandLocal "emojis.txt" {} '' - ${tepData} < ${emojiTestTxt} > "$out" + ${tepData} < ${emojiTestTxt} > tep-data.txt + cat ${static} tep-data.txt > "$out" ''; in -- cgit 1.4.1