3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/data/fonts/sarasa-gothic/default.nix

27 lines
769 B
Nix
Raw Normal View History

{ lib, fetchurl, libarchive }:
2018-04-25 10:34:53 +01:00
let
version = "0.8.2";
2019-08-13 22:52:01 +01:00
in fetchurl {
name = "sarasa-gothic-${version}";
2018-04-25 10:34:53 +01:00
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";
sha256 = "17xkpklb6spi10132lq658fwvrms3fs7ksb9j098z9vaqad1k51q";
2018-04-25 10:34:53 +01:00
recursiveHash = true;
downloadToTemp = true;
2018-04-25 10:34:53 +01:00
postFetch = ''
mkdir -p $out/share/fonts
${libarchive}/bin/bsdtar -xf $downloadedFile -C $out/share/fonts
2018-04-25 10:34:53 +01:00
'';
meta = with lib; {
2018-04-25 10:34:53 +01: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 10:34:53 +01:00
license = licenses.ofl;
maintainers = [ maintainers.ChengCat ];
platforms = platforms.all;
};
}