diff --git a/pkgs/data/fonts/inziu-iosevka/default.nix b/pkgs/data/fonts/inziu-iosevka/default.nix new file mode 100644 index 00000000000..536f5cb0c61 --- /dev/null +++ b/pkgs/data/fonts/inziu-iosevka/default.nix @@ -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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c9bbbbf396c..7518ed65a7a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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; };