2022-09-09 14:08:57 +00:00
|
|
|
{ callPackage, lib, fetchFromSourcehut }:
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
let
|
2022-09-09 14:08:57 +00:00
|
|
|
sets = [
|
|
|
|
"comfy"
|
|
|
|
"comfy-fixed"
|
|
|
|
"comfy-duo"
|
|
|
|
"comfy-wide"
|
|
|
|
"comfy-wide-fixed"
|
|
|
|
"comfy-motion"
|
|
|
|
"comfy-motion-duo"
|
|
|
|
];
|
|
|
|
version = "0.4.0";
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~protesilaos";
|
2022-08-12 12:06:08 +00:00
|
|
|
repo = "iosevka-comfy";
|
|
|
|
rev = version;
|
2022-09-09 14:08:57 +00:00
|
|
|
sha256 = "sha256-d3C5HNiZCd0xva6zvMP9NmvmeU4uXuaO04pbgIepwfw=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
privateBuildPlan = src.outPath + "/private-build-plans.toml";
|
2022-07-14 12:49:19 +00:00
|
|
|
overrideAttrs = (attrs: {
|
2022-08-12 12:06:08 +00:00
|
|
|
inherit version;
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
2022-09-09 14:08:57 +00:00
|
|
|
inherit (src.meta) homepage;
|
2022-07-14 12:49:19 +00:00
|
|
|
description = ''
|
2022-09-09 14:08:57 +00:00
|
|
|
Custom build of Iosevka with a rounded style and open shapes,
|
|
|
|
adjusted metrics, and overrides for almost all individual glyphs
|
|
|
|
in both roman (upright) and italic (slanted) variants.
|
|
|
|
'';
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = attrs.meta.platforms;
|
|
|
|
maintainers = [ maintainers.DamienCassou ];
|
|
|
|
};
|
|
|
|
});
|
2022-09-09 14:08:57 +00:00
|
|
|
makeIosevkaFont = set:
|
|
|
|
(callPackage ./. { inherit set privateBuildPlan; }).overrideAttrs
|
|
|
|
overrideAttrs;
|
|
|
|
in builtins.listToAttrs (builtins.map (set: {
|
|
|
|
name = set;
|
|
|
|
value = makeIosevkaFont set;
|
|
|
|
}) sets)
|