c9eb44eab3
* make font derivations fixed-output where applicable * fix dead links * `stdenv.lib` -> `lib` where `stdenv` is not involved * remove `meta.platforms = [ unix ]` and `meta.platforms = [ linux ]` because the restriction has no sense for data packages
26 lines
724 B
Nix
26 lines
724 B
Nix
{ lib, fetchurl, p7zip }:
|
|
|
|
let
|
|
version = "0.8.0";
|
|
in fetchurl rec {
|
|
name = "sarasa-gothic-${version}";
|
|
|
|
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/sarasa-gothic-ttc-${version}.7z";
|
|
sha256 = "0zafvzrh4180hmz351f1rvs29n8mfxf0qv6mdl7psf1f066dizs6";
|
|
|
|
recursiveHash = true;
|
|
downloadToTemp = true;
|
|
|
|
postFetch = ''
|
|
${p7zip}/bin/7z x $downloadedFile -o$out/share/fonts
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|