diff options
author | volth <volth@volth.com> | 2019-05-13 01:55:32 +0000 |
---|---|---|
committer | volth <volth@volth.com> | 2019-05-13 06:03:31 +0000 |
commit | c9eb44eab323aa43913b85af9a9a7f9e01f5e882 (patch) | |
tree | a36baf5677abb7e70cf56b483fe97ee6999fde91 /pkgs/data/fonts/sarasa-gothic | |
parent | 1df1834dd1e47f9a1452fc271d7e0b4ba296e04d (diff) |
data/fonts: cleanup
* 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
Diffstat (limited to 'pkgs/data/fonts/sarasa-gothic')
-rw-r--r-- | pkgs/data/fonts/sarasa-gothic/default.nix | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/pkgs/data/fonts/sarasa-gothic/default.nix b/pkgs/data/fonts/sarasa-gothic/default.nix index 17ee7cc2a9eac..f46fda0dd3103 100644 --- a/pkgs/data/fonts/sarasa-gothic/default.nix +++ b/pkgs/data/fonts/sarasa-gothic/default.nix @@ -1,25 +1,21 @@ -{ stdenv, fetchurl, p7zip }: +{ lib, 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"; + sha256 = "0zafvzrh4180hmz351f1rvs29n8mfxf0qv6mdl7psf1f066dizs6"; recursiveHash = true; downloadToTemp = true; postFetch = '' - ${p7zip}/bin/7z x $downloadedFile - mkdir -p $out/share/fonts - install -m644 *.ttc $out/share/fonts/ + ${p7zip}/bin/7z x $downloadedFile -o$out/share/fonts ''; - meta = with stdenv.lib; { + 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; |