about summary refs log tree commit diff
path: root/pkgs/sternenseemann
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-13 08:35:57 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-04-13 08:36:56 +0200
commit4237d9f52e13c97e238f6178e61be0e7843abe51 (patch)
tree030a74b8471e758498ecaa97633d2b1435dac945 /pkgs/sternenseemann
parent997cbff6504bcd6bbc2b9fc72fecf271508956b8 (diff)
pkgs/sternenseemann/tep: add static list of additional chars
This is currently mostly to add the dot character used as separator in
dot time (<https://dotti.me>).
Diffstat (limited to 'pkgs/sternenseemann')
-rw-r--r--pkgs/sternenseemann/tep/default.nix10
1 files changed, 8 insertions, 2 deletions
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