2019-05-13 01:55:32 +00:00
|
|
|
{ lib, fetchurl, p7zip }:
|
2018-04-25 09:34:53 +00:00
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
let
|
2019-04-15 15:20:35 +00:00
|
|
|
version = "0.8.0";
|
2018-11-23 23:07:45 +00:00
|
|
|
in fetchurl rec {
|
|
|
|
name = "sarasa-gothic-${version}";
|
2018-04-25 09:34:53 +00:00
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";
|
2019-05-13 01:55:32 +00:00
|
|
|
sha256 = "0zafvzrh4180hmz351f1rvs29n8mfxf0qv6mdl7psf1f066dizs6";
|
2018-04-25 09:34:53 +00:00
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
recursiveHash = true;
|
|
|
|
downloadToTemp = true;
|
2018-04-25 09:34:53 +00:00
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
postFetch = ''
|
2019-05-13 01:55:32 +00:00
|
|
|
${p7zip}/bin/7z x $downloadedFile -o$out/share/fonts
|
2018-04-25 09:34:53 +00:00
|
|
|
'';
|
|
|
|
|
2019-05-13 01:55:32 +00:00
|
|
|
meta = with lib; {
|
2018-04-25 09:34:53 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|