mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
Replace all ${pkg}/bin/name patterns with:
- lib.getExe pkg (for main executables: curl, jq, gnused, ffmpeg, etc.)
- lib.getExe' pkg "name" (for specific binaries: coreutils, util-linux, etc.)
15 lines
377 B
Nix
15 lines
377 B
Nix
# Add Arabic diacritics (tashkeel) to text via alsharekh.org
|
|
{
|
|
lib,
|
|
writers,
|
|
curl,
|
|
jq,
|
|
}:
|
|
writers.writeDashBin "mushakkil" ''
|
|
${lib.getExe curl} -sSL 'https://diac.alsharekh.org/Diac/DiacText' \
|
|
-H "Content-Type: application/json" \
|
|
--data-raw "$(${lib.getExe jq} --raw-input '{word: ., type: 1}')" \
|
|
--compressed \
|
|
| ${lib.getExe jq} -r .diacWord
|
|
''
|