2023-01-20 10:41:00 +00:00
|
|
|
# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
|
2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchzip }:
|
|
|
|
|
2023-01-20 10:41:00 +00:00
|
|
|
(fetchzip {
|
2022-02-10 20:34:41 +00:00
|
|
|
name = "ipaexfont-004.01";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
url = "https://moji.or.jp/wp-content/ipafont/IPAexfont/IPAexfont00401.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "0wp369kri33kb1mmiq4lpl9i4xnacw9fj63ycmkmlkq64s8qnjnx";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Japanese font package with Mincho and Gothic fonts";
|
|
|
|
longDescription = ''
|
|
|
|
IPAex font is a Japanese font developed by the Information-technology
|
|
|
|
Promotion Agency of Japan. It provides both Mincho and Gothic fonts,
|
|
|
|
suitable for both display and printing.
|
|
|
|
|
|
|
|
This is the successor to the IPA fonts.
|
|
|
|
'';
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://moji.or.jp/ipafont/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.ipa;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
2023-01-20 10:41:00 +00:00
|
|
|
}).overrideAttrs (_: {
|
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/fonts
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/opentype
|
|
|
|
'';
|
|
|
|
})
|