Merge pull request #179806 from sudosubin/pretendard-1.3.3
pretendard: 1.3.0 -> 1.3.3
This commit is contained in:
commit
567cee83e0
1 changed files with 9 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
{ lib, fetchzip }:
|
{ lib, fetchzip }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "1.3.0";
|
version = "1.3.3";
|
||||||
|
|
||||||
mkPretendard = { pname, typeface, sha256 }:
|
mkPretendard = { pname, typeface, sha256 }:
|
||||||
fetchzip {
|
fetchzip {
|
||||||
|
@ -10,9 +10,12 @@ let
|
||||||
url = "https://github.com/orioncactus/pretendard/releases/download/v${version}/${typeface}-${version}.zip";
|
url = "https://github.com/orioncactus/pretendard/releases/download/v${version}/${typeface}-${version}.zip";
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
|
|
||||||
|
stripRoot = false;
|
||||||
|
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
mkdir -p $out/share/fonts/opentype
|
mkdir -p $out/share/fonts/
|
||||||
unzip -j $downloadedFile "*.otf" -d $out/share/fonts/opentype
|
install -Dm644 $out/public/static/*.otf -t $out/share/fonts/opentype
|
||||||
|
rm -rf $out/{public,web,LICENSE.txt}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -29,18 +32,18 @@ in
|
||||||
pretendard = mkPretendard {
|
pretendard = mkPretendard {
|
||||||
pname = "pretendard";
|
pname = "pretendard";
|
||||||
typeface = "Pretendard";
|
typeface = "Pretendard";
|
||||||
sha256 = "sha256-4DM8PZjxW93sgQChs+qu5Svo+iGlFnpglu6acYMCkSQ=";
|
sha256 = "sha256-lRHRdCAg3i3+3Y6j0dCXUgwLdeS/VeI6KNkbDKchNEY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pretendard-jp = mkPretendard {
|
pretendard-jp = mkPretendard {
|
||||||
pname = "pretendard-jp";
|
pname = "pretendard-jp";
|
||||||
typeface = "PretendardJP";
|
typeface = "PretendardJP";
|
||||||
sha256 = "sha256-3OOUUDiurCpIGNIVjrr2KW0CB3fCXt11P+13teK5kOQ=";
|
sha256 = "sha256-VgGt/WoaaJJDAzw+gUQVgTQ+q34bdAaKUB4cA9eU0dQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pretendard-std = mkPretendard {
|
pretendard-std = mkPretendard {
|
||||||
pname = "pretendard-std";
|
pname = "pretendard-std";
|
||||||
typeface = "PretendardStd";
|
typeface = "PretendardStd";
|
||||||
sha256 = "sha256-iVAPdA6qAiE7pseaB0NKPJBPNGdw/nT6PzXIsLajJH4=";
|
sha256 = "sha256-FOlZrr6CHPfUm9Q+Yoi0HLQUI7cAhQYq6P6sJGXBIWg=";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue