2020-05-15 21:57:56 +00:00
|
|
|
{ lib, fetchurl, libarchive }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2021-07-14 22:03:04 +00:00
|
|
|
version = "0.32.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
in fetchurl {
|
|
|
|
name = "sarasa-gothic-${version}";
|
|
|
|
|
|
|
|
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";
|
2021-07-14 22:03:04 +00:00
|
|
|
sha256 = "0mwaj9dq26f36ddywjm7m0is1jml2kpmqm46b16c8avvr97c65z5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
recursiveHash = true;
|
|
|
|
downloadToTemp = true;
|
|
|
|
|
|
|
|
postFetch = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
${libarchive}/bin/bsdtar -xf $downloadedFile -C $out/share/fonts
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|