2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchurl, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
let pname = "mplus-outline-fonts";
|
2023-02-02 18:25:31 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
osdnRelease = stdenvNoCC.mkDerivation {
|
|
|
|
pname = "${pname}-osdn";
|
|
|
|
version = "063a";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://osdn/mplus-fonts/62344/mplus-TESTFLIGHT-063a.tar.xz";
|
|
|
|
hash = "sha256-ROuXO0tq/1dN5FTbEF3cI+Z0nCKUc0vZyx4Nc05M3Xk=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -m444 -Dt $out/share/fonts/truetype/${pname} *.ttf
|
|
|
|
|
|
|
|
runHook postInstall
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "M+ Outline Fonts (legacy OSDN release)";
|
|
|
|
homepage = "https://mplus-fonts.osdn.jp";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ uakci ];
|
2022-03-30 09:31:56 +00:00
|
|
|
platforms = platforms.all;
|
2024-02-29 20:09:43 +00:00
|
|
|
license = licenses.mplus;
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
githubRelease = stdenvNoCC.mkDerivation {
|
|
|
|
pname = "${pname}-github";
|
|
|
|
version = "unstable-2022-05-19";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coz-m";
|
|
|
|
repo = "MPLUS_FONTS";
|
|
|
|
rev = "336fec4e9e7c1e61bd22b82e6364686121cf3932";
|
|
|
|
hash = "sha256-jzDDUs1dKjqNjsMeTA2/4vm+akIisnOuE2mPQS7IDSA=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
mkdir -p $out/share/fonts/{truetype,opentype}/${pname}
|
2023-02-02 18:25:31 +00:00
|
|
|
mv fonts/ttf/* $out/share/fonts/truetype/${pname}
|
|
|
|
mv fonts/otf/* $out/share/fonts/opentype/${pname}
|
|
|
|
|
|
|
|
runHook postInstall
|
2022-03-30 09:31:56 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "M+ Outline Fonts (GitHub release)";
|
|
|
|
homepage = "https://mplusfonts.github.io";
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ uakci ];
|
2022-03-30 09:31:56 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.ofl;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|