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