02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
32 lines
1.1 KiB
Nix
32 lines
1.1 KiB
Nix
{ callPackage, lib, fetchFromGitHub }:
|
|
|
|
let
|
|
sets = [ "comfy" "comfy-fixed" "comfy-duo" "comfy-wide" "comfy-wide-fixed" ];
|
|
version = "0.3.1";
|
|
src = fetchFromGitHub {
|
|
owner = "protesilaos";
|
|
repo = "iosevka-comfy";
|
|
rev = version;
|
|
sha256 = "sha256-SMy3Kqve65ZU13lf1vZQR61mH7gcl1DvIZt3yD6tIf4=";
|
|
};
|
|
privateBuildPlan = src.outPath + "/private-build-plans.toml";
|
|
overrideAttrs = (attrs: {
|
|
inherit version;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/protesilaos/iosevka-comfy";
|
|
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)
|