nix/packages/iosevkaLyteTerm.nix

146 lines
4.4 KiB
Nix
Raw Permalink Normal View History

2024-06-01 20:08:59 -05:00
{iosevka, ...}: let
set = "LyteTerm";
2024-06-01 21:12:10 -05:00
in ((iosevka.override {
2024-06-01 20:08:59 -05:00
inherit set;
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
privateBuildPlan = ''
[buildPlans.Iosevka${set}]
family = "Iosevka${set}"
spacing = "fontconfig-mono"
serifs = "sans"
exportGlyphNames = true
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
[buildPlans.Iosevka${set}.ligations]
inherits = "dlig"
2024-08-30 11:04:17 -05:00
disables = [ "exeqeqeq", "exeqeq", "eqexeq-dl", "exeq", "tildeeq" ]
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
[buildPlans.Iosevka${set}.weights.regular]
shape = 400
menu = 400
css = 400
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
[buildPlans.Iosevka${set}.weights.book]
shape = 450
menu = 450
css = 450
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
[buildPlans.Iosevka${set}.weights.bold]
shape = 700
menu = 700
css = 700
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
[buildPlans.Iosevka${set}.weights.black]
shape = 900
menu = 900
css = 900
2024-02-02 18:14:46 -06:00
2024-09-12 12:05:22 -05:00
## [[buildPlans.Iosevka${set}.compatibility-ligatures]]
## unicode = 57600 # 0xE100
## featureTag = 'calt'
## kequence = '<*>'
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
[buildPlans.Iosevka${set}.variants]
inherits = "ss01"
2024-02-02 18:14:46 -06:00
2024-06-01 20:08:59 -05:00
[buildPlans.Iosevka${set}.variants.design]
capital-a = 'curly-serifless'
capital-b = 'standard-interrupted-serifless'
capital-c = 'unilateral-inward-serifed'
capital-d = 'standard-serifless'
capital-g = 'toothless-rounded-inward-serifed-hooked'
capital-i = 'serifed'
capital-j = 'serifed'
capital-k = 'curly-serifless'
capital-l = 'motion-serifed'
capital-m = 'hanging-serifless'
capital-n = 'asymmetric-serifless'
capital-p = 'open-serifless'
capital-q = 'crossing'
capital-r = 'standing-open-serifless'
capital-s = 'unilateral-inward-serifed'
capital-t = 'motion-serifed'
capital-u = 'toothless-corner-serifless'
capital-v = 'curly-serifless'
capital-w = 'curly-serifless'
capital-x = 'curly-serifless'
capital-y = 'curly-base-serifed'
capital-z = 'curly-top-serifed-with-crossbar'
a = 'double-storey-toothless-corner'
b = 'toothless-corner-serifless'
c = 'unilateral-inward-serifed'
d = 'toothless-corner-serifless'
e = 'flat-crossbar'
f = 'tailed'
g = 'double-storey-open'
# g = 'single-storey-earless-corner-flat-hook'
h = 'straight-serifless'
i = 'tailed-serifed'
j = 'serifed'
k = 'curly-serifless'
l = 'tailed-serifed'
m = 'earless-corner-double-arch-serifless'
n = 'earless-corner-straight-serifless'
p = 'earless-corner-serifless'
q = 'earless-corner-diagonal-tailed-serifless'
r = 'earless-corner-serifless'
s = 'unilateral-inward-serifed'
t = 'bent-hook-asymmetric'
u = 'toothless-corner-serifless'
v = 'curly-serifless'
w = 'curly-serifless'
x = 'curly-serifless'
y = 'curly-turn-serifless'
z = 'curly-top-serifed-with-crossbar'
# cyrl-capital-ze = 'unilateral-inward-serifed'
zero = 'reverse-slashed-split'
one = 'base'
two = 'curly-neck-serifless'
three = 'two-arcs'
four = 'semi-open-non-crossing-serifless'
# five = 'vertical-upper-left-bar'
five = 'upright-flat-serifless'
six = 'straight-bar'
seven = 'curly-serifed-crossbar'
eight = 'two-circles'
nine = 'straight-bar'
tilde = 'low'
asterisk = 'penta-low'
underscore = 'above-baseline'
pilcrow = 'low'
caret = 'low'
paren = 'flat-arc'
brace = 'curly-flat-boundary'
number-sign = 'upright-open'
ampersand = 'upper-open'
at = 'compact'
dollar = 'interrupted'
cent = 'open'
percent = 'rings-segmented-slash'
bar = 'force-upright'
ascii-single-quote = 'raised-comma'
ascii-grave = 'straight'
question = 'smooth'
punctuation-dot = 'round'
'';
2024-06-01 20:12:20 -05:00
})
.overrideAttrs {
2024-06-01 21:12:10 -05:00
buildPhase = ''
export HOME=$TMPDIR
runHook preBuild
npm run build --no-update-notifier --targets ttf::$pname -- --jCmd=$NIX_BUILD_CORES --verbose=9
2024-06-01 20:12:20 -05:00
npm run build --no-update-notifier --targets woff2::$pname -- --jCmd=$NIX_BUILD_CORES --verbose=9
2024-06-01 21:12:10 -05:00
runHook postBuild
2024-06-01 20:12:20 -05:00
'';
2024-06-01 21:12:10 -05:00
installPhase = ''
runHook preInstall
ttfontdir="$out/share/fonts/truetype"
wfontdir="$out/share/fonts/woff2"
install -d "$ttfontdir"
install -d "$wfontdir"
install "dist/$pname/TTF"/* "$ttfontdir"
install "dist/$pname/WOFF2"/* "$wfontdir"
runHook postInstall
'';
})