b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ callPackage, lib, fetchFromSourcehut }:
|
|
|
|
let
|
|
sets = [
|
|
"comfy"
|
|
"comfy-fixed"
|
|
"comfy-duo"
|
|
"comfy-wide"
|
|
"comfy-wide-fixed"
|
|
"comfy-motion"
|
|
"comfy-motion-duo"
|
|
];
|
|
version = "0.4.0";
|
|
src = fetchFromSourcehut {
|
|
owner = "~protesilaos";
|
|
repo = "iosevka-comfy";
|
|
rev = version;
|
|
sha256 = "sha256-d3C5HNiZCd0xva6zvMP9NmvmeU4uXuaO04pbgIepwfw=";
|
|
};
|
|
privateBuildPlan = src.outPath + "/private-build-plans.toml";
|
|
overrideAttrs = (attrs: {
|
|
inherit version;
|
|
|
|
meta = with lib; {
|
|
inherit (src.meta) homepage;
|
|
description = ''
|
|
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.
|
|
'';
|
|
license = licenses.ofl;
|
|
platforms = attrs.meta.platforms;
|
|
maintainers = [ maintainers.DamienCassou ];
|
|
};
|
|
});
|
|
makeIosevkaFont = set:
|
|
(callPackage ./. { inherit set privateBuildPlan; }).overrideAttrs
|
|
overrideAttrs;
|
|
in builtins.listToAttrs (builtins.map (set: {
|
|
name = set;
|
|
value = makeIosevkaFont set;
|
|
}) sets)
|