nixpkgs/pkgs/data/fonts/sarasa-gothic/default.nix

30 lines
806 B
Nix
Raw Normal View History

2018-04-25 09:34:53 +00:00
{ stdenv, fetchurl, p7zip }:
let
version = "0.8.0";
sha256 = "0zafvzrh4180hmz351f1rvs29n8mfxf0qv6mdl7psf1f066dizs6";
in fetchurl rec {
inherit sha256;
2018-04-25 09:34:53 +00:00
name = "sarasa-gothic-${version}";
2018-04-25 09:34:53 +00:00
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";
2018-04-25 09:34:53 +00:00
recursiveHash = true;
downloadToTemp = true;
2018-04-25 09:34:53 +00:00
postFetch = ''
${p7zip}/bin/7z x $downloadedFile
mkdir -p $out/share/fonts
install -m644 *.ttc $out/share/fonts/
2018-04-25 09:34:53 +00:00
'';
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;
};
}