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

27 lines
771 B
Nix
Raw Normal View History

{ lib, fetchurl, libarchive }:
2018-04-25 09:34:53 +00:00
let
2020-07-29 05:49:27 +00:00
version = "0.12.11";
2019-08-13 21:52:01 +00:00
in fetchurl {
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";
2020-07-29 05:49:27 +00:00
sha256 = "0vcp8583by7pfqinq8p2jx2bn4dqq816x4bxgv05k0kb9ziwj7aj";
2018-04-25 09:34:53 +00:00
recursiveHash = true;
downloadToTemp = true;
2018-04-25 09:34:53 +00:00
postFetch = ''
mkdir -p $out/share/fonts
${libarchive}/bin/bsdtar -xf $downloadedFile -C $out/share/fonts
2018-04-25 09:34:53 +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";
2018-04-25 09:34:53 +00:00
license = licenses.ofl;
maintainers = [ maintainers.ChengCat ];
platforms = platforms.all;
};
}