Merge pull request #39477 from ChengCat/new-fonts

Add new fonts
This commit is contained in:
Jörg Thalheim 2018-04-26 10:17:41 +01:00 committed by GitHub
commit 903f694e34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,33 @@
{ 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;
# large package, mainly i/o bound
hydraPlatforms = [];
};
}

View File

@ -0,0 +1,32 @@
{ stdenv, fetchurl, p7zip }:
stdenv.mkDerivation rec {
version = "0.5.2";
name = "sarasa-gothic-${version}";
package = fetchurl {
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttf-${version}.7z";
sha256 = "18ycw57k7yhrbb8njzhzk6x32xnjal61wr48qxkqy4lh9zfy0p22";
};
nativeBuildInputs = [ p7zip ];
unpackPhase = ''
7z x $package
'';
installPhase = ''
mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype
'';
meta = with stdenv.lib; {
description = "SARASA GOTHIC is a Chinese & Japanese programming font based on Iosevka and Source Han Sans";
homepage = https://github.com/be5invis/Sarasa-Gothic;
license = licenses.ofl;
maintainers = [ maintainers.ChengCat ];
platforms = platforms.all;
# large package, mainly i/o bound
hydraPlatforms = [];
};
}

View File

@ -14353,6 +14353,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;
};
@ -14510,6 +14512,8 @@ with pkgs;
sampradaya = callPackage ../data/fonts/sampradaya { };
sarasa-gothic = callPackage ../data/fonts/sarasa-gothic { };
scowl = callPackage ../data/misc/scowl { };
shaderc = callPackage ../development/compilers/shaderc { };