mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
59 lines
1.5 KiB
Nix
59 lines
1.5 KiB
Nix
{ lib, stdenvNoCC, fetchzip }:
|
|
|
|
let
|
|
version = "1.3.9";
|
|
|
|
mkPretendard = { pname, typeface, hash }:
|
|
stdenvNoCC.mkDerivation {
|
|
inherit pname version;
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/orioncactus/pretendard/releases/download/v${version}/${typeface}-${version}.zip";
|
|
stripRoot = false;
|
|
inherit hash;
|
|
};
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm644 public/static/*.otf -t $out/share/fonts/opentype
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/orioncactus/pretendard";
|
|
description = "Alternative font to system-ui for all platforms";
|
|
license = licenses.ofl;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ sudosubin ];
|
|
};
|
|
};
|
|
|
|
in
|
|
{
|
|
pretendard = mkPretendard {
|
|
pname = "pretendard";
|
|
typeface = "Pretendard";
|
|
hash = "sha256-n7RQApffpL/8ojHcZbdxyanl9Tlc8HP8kxLFBdArUfY=";
|
|
};
|
|
|
|
pretendard-gov = mkPretendard {
|
|
pname = "pretendard-gov";
|
|
typeface = "PretendardGOV";
|
|
hash = "sha256-qoDUBOmrk6WPKQgnapThfKC01xWup+HN82hcoIjEe0M=";
|
|
};
|
|
|
|
pretendard-jp = mkPretendard {
|
|
pname = "pretendard-jp";
|
|
typeface = "PretendardJP";
|
|
hash = "sha256-1nTk1LPoRSfSDgDuGWkcs6RRIY4ZOqDBPMsxezMos6Q=";
|
|
};
|
|
|
|
pretendard-std = mkPretendard {
|
|
pname = "pretendard-std";
|
|
typeface = "PretendardStd";
|
|
hash = "sha256-gkYqqxSICmSIrBuPRzBaOlGGM/rJU1z7FiFvu9RhK5s=";
|
|
};
|
|
}
|