commit
903f694e34
33
pkgs/data/fonts/inziu-iosevka/default.nix
Normal file
33
pkgs/data/fonts/inziu-iosevka/default.nix
Normal 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 = [];
|
||||
};
|
||||
}
|
32
pkgs/data/fonts/sarasa-gothic/default.nix
Normal file
32
pkgs/data/fonts/sarasa-gothic/default.nix
Normal 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 = [];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue