2023-02-02 18:25:31 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
pname = "myrica";
|
|
|
|
version = "2.011.20160403";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomokuni";
|
|
|
|
repo = "Myrica";
|
|
|
|
# commit does not exist on any branch on the target repository
|
|
|
|
rev = "b737107723bfddd917210f979ccc32ab3eb6dc20";
|
|
|
|
hash = "sha256-kx+adbN2DsO81KJFt+FGAPZN+1NpE9xiagKZ4KyaJV0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/fonts/truetype
|
|
|
|
cp product/*.TTC $out/share/fonts/truetype
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://myrica.estable.jp/";
|
|
|
|
license = licenses.ofl;
|
|
|
|
maintainers = with maintainers; [ mikoim ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|