bahaghari/lib: fix toBaseDigitsWithGlyphs

This commit is contained in:
Gabriel Arazas 2024-02-24 18:49:24 +08:00
parent d0f57db0aa
commit 7159fc597f
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -39,8 +39,8 @@
*/ */
toBaseDigitsWithGlyphs = base: i: glyphs: toBaseDigitsWithGlyphs = base: i: glyphs:
let let
baseDigits = pkgs.lib.toBaseDigits i; baseDigits = pkgs.lib.toBaseDigits base i;
toBaseDigits = d: glyphs.${builtins.toString i}; toBaseDigits = d: glyphs.${builtins.toString d};
in in
pkgs.lib.concatMapStrings toBaseDigits baseDigits; pkgs.lib.concatMapStrings toBaseDigits baseDigits;
} }