2018-04-25 10:34:53 +01:00
|
|
|
{ stdenv, fetchurl, p7zip }:
|
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
let
|
2018-08-01 08:40:24 +01:00
|
|
|
version = "0.6.0";
|
2018-11-23 23:07:45 +00:00
|
|
|
sha256 = "08g3kzplp3v8kvni1vzl73fgh03xgfl8pwqyj7vwjihjdr1xfjyz";
|
|
|
|
in fetchurl rec {
|
|
|
|
inherit sha256;
|
2018-04-25 10:34:53 +01:00
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
name = "sarasa-gothic-${version}";
|
2018-04-25 10:34:53 +01: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";
|
2018-04-25 10:34:53 +01:00
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
recursiveHash = true;
|
|
|
|
downloadToTemp = true;
|
2018-04-25 10:34:53 +01:00
|
|
|
|
2018-11-23 23:07:45 +00:00
|
|
|
postFetch = ''
|
|
|
|
${p7zip}/bin/7z x $downloadedFile
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
install -m644 *.ttc $out/share/fonts/
|
2018-04-25 10:34:53 +01: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;
|
|
|
|
};
|
|
|
|
}
|