nixpkgs/pkgs/data/fonts/iosevka/comfy.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1.1 KiB
Nix
Raw Normal View History

{ callPackage, lib, fetchFromGitHub }:
2022-06-06 16:26:06 +00:00
let
2022-07-01 20:00:00 +00:00
sets = [ "comfy" "comfy-fixed" "comfy-duo" "comfy-wide" "comfy-wide-fixed" ];
2022-07-15 11:17:27 +00:00
version = "0.2.1";
src = fetchFromGitHub {
owner = "protesilaos";
repo = "iosevka-comfy";
rev = version;
sha256 = "sha256-Ki3/8REmVb1XtvchdLZJ9Zc+EoP3LP9tvruuP/K1Xpo=";
};
privateBuildPlan = src.outPath + "/private-build-plans.toml";
2022-06-06 16:26:06 +00:00
overrideAttrs = (attrs: {
2022-07-15 11:17:27 +00:00
inherit version;
2022-06-06 16:26:06 +00:00
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;
2022-06-06 16:26:06 +00:00
}).overrideAttrs overrideAttrs;
in
builtins.listToAttrs (builtins.map (set: {name=set; value=makeIosevkaFont set;}) sets)