mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 21:44:49 +00:00

https://github.com/be5invis/Sarasa-Gothic/releases/tag/v0.8.0 https://github.com/be5invis/Sarasa-Gothic/releases/tag/v0.7.2 https://github.com/be5invis/Sarasa-Gothic/releases/tag/v0.7.0
30 lines
806 B
Nix
30 lines
806 B
Nix
{ stdenv, fetchurl, p7zip }:
|
|
|
|
let
|
|
version = "0.8.0";
|
|
sha256 = "0zafvzrh4180hmz351f1rvs29n8mfxf0qv6mdl7psf1f066dizs6";
|
|
in fetchurl rec {
|
|
inherit sha256;
|
|
|
|
name = "sarasa-gothic-${version}";
|
|
|
|
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";
|
|
|
|
recursiveHash = true;
|
|
downloadToTemp = true;
|
|
|
|
postFetch = ''
|
|
${p7zip}/bin/7z x $downloadedFile
|
|
mkdir -p $out/share/fonts
|
|
install -m644 *.ttc $out/share/fonts/
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|