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:
let
baseDigits = pkgs.lib.toBaseDigits i;
toBaseDigits = d: glyphs.${builtins.toString i};
baseDigits = pkgs.lib.toBaseDigits base i;
toBaseDigits = d: glyphs.${builtins.toString d};
in
pkgs.lib.concatMapStrings toBaseDigits baseDigits;
}