Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
1017 B
Nix
43 lines
1017 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchurl,
|
|
unzip,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "sarasa-gothic";
|
|
version = "1.0.33";
|
|
|
|
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${finalAttrs.version}/Sarasa-TTC-${finalAttrs.version}.zip";
|
|
hash = "sha256-aIZWTrG1NimE6cPzs1drrTfvbHAuObUOjlPgZv3PaSg=";
|
|
};
|
|
|
|
sourceRoot = ".";
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
cp *.ttc $out/share/fonts/truetype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "CJK programming font based on Iosevka and Source Han Sans";
|
|
homepage = "https://github.com/be5invis/Sarasa-Gothic";
|
|
license = lib.licenses.ofl;
|
|
maintainers = with lib.maintainers; [
|
|
ChengCat
|
|
wegank
|
|
];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|