Commit 9b4c9079 authored by Weijia Wang's avatar Weijia Wang
Browse files

sarasa-gothic: 1.0.5 -> 1.0.6, refactor

parent 3452f773
Loading
Loading
Loading
Loading
+20 −12
Original line number Diff line number Diff line
{ lib, stdenvNoCC, fetchurl, p7zip }:

stdenvNoCC.mkDerivation rec {
{
  lib,
  stdenvNoCC,
  fetchurl,
  unzip,
}:

stdenvNoCC.mkDerivation (finalAttrs: {
  pname = "sarasa-gothic";
  version = "1.0.5";
  version = "1.0.6";

  src = fetchurl {
    # Use the 'ttc' files here for a smaller closure size.
    # (Using 'ttf' files gives a closure size about 15x larger, as of November 2021.)
    url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${version}/Sarasa-TTC-${version}.7z";
    hash = "sha256-OPoX6GNCilA8Lj9kLO6RHapU7mpZTiNa/8LL72TG1Wk=";
    url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${finalAttrs.version}b/Sarasa-TTC-${finalAttrs.version}.zip";
    hash = "sha256-MkbmEn4vV2WEDC8pW+WewPuVhlLPi2iGmhvJW6Szksw=";
  };

  sourceRoot = ".";

  nativeBuildInputs = [ p7zip ];
  nativeBuildInputs = [ unzip ];

  installPhase = ''
    runHook preInstall
@@ -24,11 +29,14 @@ stdenvNoCC.mkDerivation rec {
    runHook postInstall
  '';

  meta = with lib; {
  meta = {
    description = "A CJK 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;
    license = lib.licenses.ofl;
    maintainers = with lib.maintainers; [
      ChengCat
      wegank
    ];
    platforms = lib.platforms.all;
  };
}
})
+0 −2
Original line number Diff line number Diff line
@@ -29536,8 +29536,6 @@ with pkgs;
  sarabun-font = callPackage ../data/fonts/sarabun { };
  sarasa-gothic = callPackage ../data/fonts/sarasa-gothic { };
  savepagenow = callPackage ../tools/misc/savepagenow { };
  scheme-manpages = callPackage ../data/documentation/scheme-manpages { };