mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
bahaghari/lib: improve generateGlyphSet
This commit is contained in:
parent
103988226b
commit
f21b9367c9
@ -69,10 +69,10 @@
|
||||
let
|
||||
glyphsList' =
|
||||
pkgs.lib.lists.imap0
|
||||
(i: glyph: { "${builtins.toString i}" = glyph; })
|
||||
(i: glyph: pkgs.lib.nameValuePair (builtins.toString i) glyph)
|
||||
glyphsList;
|
||||
in
|
||||
pkgs.lib.foldl (acc: glyph: acc // glyph) { } glyphsList';
|
||||
pkgs.lib.listToAttrs glyphsList';
|
||||
|
||||
/* Generates a conversion table for a sorted list of glyphs to its decimal
|
||||
number. Suitable for creating your own conversion function. Accepts the
|
||||
|
Loading…
Reference in New Issue
Block a user