nixpkgs/pkgs/by-name/sa/sarasa-gothic/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1018 B
Nix
Raw Normal View History

{
lib,
stdenvNoCC,
fetchurl,
unzip,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "sarasa-gothic";
2024-03-30 23:34:45 +00:00
version = "1.0.9";
2018-04-25 09:34:53 +00:00
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.)
2024-03-17 16:32:59 +00:00
url = "https://github.com/be5invis/Sarasa-Gothic/releases/download/v${finalAttrs.version}/Sarasa-TTC-${finalAttrs.version}.zip";
2024-03-30 23:34:45 +00:00
hash = "sha256-g9XtMIgQtqOei38OHMynyjqkWkFzaIq+/s7cKXPe1vA=";
};
sourceRoot = ".";
2018-04-25 09:34:53 +00:00
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
2018-04-25 09:34:53 +00:00
2021-10-30 04:20:00 +00:00
mkdir -p $out/share/fonts/truetype
cp *.ttc $out/share/fonts/truetype
runHook postInstall
2018-04-25 09:34:53 +00:00
'';
meta = {
2021-10-30 04:20:00 +00:00
description = "A 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;
2018-04-25 09:34:53 +00:00
};
})