inziu-iosevka: init at 1.13.2

This commit is contained in:
Yucheng Zhang 2018-04-25 18:10:17 +08:00
parent 2e855dc6b0
commit 42ecb0dd94
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, fetchurl, p7zip }:
stdenv.mkDerivation rec {
version = "1.13.2";
name = "inziu-iosevka-${version}";
package = fetchurl {
url = "http://7xpdnl.dl1.z0.glb.clouddn.com/inziu-iosevka-ttfs-${version}.7z";
sha256 = "1i7qqcv1x6s1xkp687wq79zqg9ly6a7l5mnmg1iqgfgcbglgjbaw";
};
nativeBuildInputs = [ p7zip ];
unpackPhase = ''
7z x $package
'';
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
meta = with stdenv.lib; {
description = "Inziu Iosevka font";
homepage = https://be5invis.github.io/Iosevka/inziu;
# license is clarified here: https://github.com/be5invis/Iosevka/issues/265
license = licenses.ofl;
maintainers = [ maintainers.ChengCat ];
platforms = platforms.all;
};
}

View File

@ -14365,6 +14365,8 @@ with pkgs;
input-fonts = callPackage ../data/fonts/input-fonts { };
inziu-iosevka = callPackage ../data/fonts/inziu-iosevka { };
iosevka = callPackage ../data/fonts/iosevka {
nodejs = nodejs-8_x;
};