1 { lib, stdenvNoCC, fetchurl, fetchFromGitHub }:
3 let pname = "mplus-outline-fonts";
6 osdnRelease = stdenvNoCC.mkDerivation {
7 pname = "${pname}-osdn";
11 url = "mirror://osdn/mplus-fonts/62344/mplus-TESTFLIGHT-063a.tar.xz";
12 hash = "sha256-ROuXO0tq/1dN5FTbEF3cI+Z0nCKUc0vZyx4Nc05M3Xk=";
18 install -m444 -Dt $out/share/fonts/truetype/${pname} *.ttf
24 description = "M+ Outline Fonts (legacy OSDN release)";
25 homepage = "https://mplus-fonts.osdn.jp";
26 maintainers = with maintainers; [ uakci ];
27 platforms = platforms.all;
28 license = licenses.mplus;
32 githubRelease = stdenvNoCC.mkDerivation {
33 pname = "${pname}-github";
34 version = "unstable-2022-05-19";
36 src = fetchFromGitHub {
39 rev = "336fec4e9e7c1e61bd22b82e6364686121cf3932";
40 hash = "sha256-jzDDUs1dKjqNjsMeTA2/4vm+akIisnOuE2mPQS7IDSA=";
46 mkdir -p $out/share/fonts/{truetype,opentype}/${pname}
47 mv fonts/ttf/* $out/share/fonts/truetype/${pname}
48 mv fonts/otf/* $out/share/fonts/opentype/${pname}
54 description = "M+ Outline Fonts (GitHub release)";
55 homepage = "https://mplusfonts.github.io";
56 maintainers = with maintainers; [ uakci ];
57 platforms = platforms.all;
58 license = licenses.ofl;