3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/sarasa-gothic/default.nix

33 lines
885 B
Nix
Raw Normal View History

2018-04-25 10:34:53 +01:00
{ stdenv, fetchurl, p7zip }:
stdenv.mkDerivation rec {
2018-08-01 08:40:24 +01:00
version = "0.6.0";
2018-04-25 10:34:53 +01:00
name = "sarasa-gothic-${version}";
package = fetchurl {
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttf-${version}.7z";
2018-08-01 08:40:24 +01:00
sha256 = "00kyx03lpgycxaw0cyx96hhrx8gwkcmy3qs35q7r09y60vg5i0nv";
2018-04-25 10:34:53 +01:00
};
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 = [];
2018-04-25 10:34:53 +01:00
};
}