@@ -0,0 +1,33 @@
1+{ stdenv, fetchurl, p7zip }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.13.2";
5+ name = "inziu-iosevka-${version}";
6+
7+ package = fetchurl {
8+ url = "http://7xpdnl.dl1.z0.glb.clouddn.com/inziu-iosevka-ttfs-${version}.7z";
9+ sha256 = "1i7qqcv1x6s1xkp687wq79zqg9ly6a7l5mnmg1iqgfgcbglgjbaw";
10+ };
11+
12+ nativeBuildInputs = [ p7zip ];
13+
14+ unpackPhase = ''
15+ 7z x $package
16+ '';
17+
18+ installPhase = ''
19+ mkdir -p $out/share/fonts/truetype
20+ cp *.ttf $out/share/fonts/truetype
21+ '';
22+
23+ meta = with stdenv.lib; {
24+ description = "Inziu Iosevka font";
25+ homepage = https://be5invis.github.io/Iosevka/inziu;
26+ # license is clarified here: https://github.com/be5invis/Iosevka/issues/265
27+ license = licenses.ofl;
28+ maintainers = [ maintainers.ChengCat ];
29+ platforms = platforms.all;
30+ # large package, mainly i/o bound
31+ hydraPlatforms = [];
32+ };
33+}