Merge pull request #298556 from kachick/init-plemoljp-font

plemoljp, plemoljp-nf, plemoljp-hs: init at 1.7.1
This commit is contained in:
kirillrdy 2024-04-04 08:37:15 +11:00 committed by GitHub
commit fe6c0ea25c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "plemoljp-hs";
version = "1.7.1";
src = fetchzip {
url = "https://github.com/yuru7/PlemolJP/releases/download/v${version}/PlemolJP_HS_v${version}.zip";
hash = "sha256-JbuKBU1TT0qE89N61jX+WF25PBRHo/RSAtdPa5Ni8og=";
};
installPhase = ''
runHook preInstall
install -Dm444 PlemolJP_HS/*.ttf -t $out/share/fonts/truetype/${pname}
install -Dm444 PlemolJP35_HS/*.ttf -t $out/share/fonts/truetype/${pname}-35
install -Dm444 PlemolJPConsole_HS/*.ttf -t $out/share/fonts/truetype/${pname}-console
install -Dm444 PlemolJP35Console_HS/*.ttf -t $out/share/fonts/truetype/${pname}-35console
runHook postInstall
'';
meta = with lib; {
description = "A composite font of IBM Plex Mono, IBM Plex Sans JP and hidden full-width space";
homepage = "https://github.com/yuru7/PlemolJP";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ kachick ];
};
}

View File

@ -0,0 +1,28 @@
{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "plemoljp-nf";
version = "1.7.1";
src = fetchzip {
url = "https://github.com/yuru7/PlemolJP/releases/download/v${version}/PlemolJP_NF_v${version}.zip";
hash = "sha256-nxGvaHLs65z4CSy/smy+koQyuYcDXJKjPZt5NusUN3E=";
};
installPhase = ''
runHook preInstall
install -Dm444 PlemolJPConsole_NF/*.ttf -t $out/share/fonts/truetype/${pname}-console
install -Dm444 PlemolJP35Console_NF/*.ttf -t $out/share/fonts/truetype/${pname}-35console
runHook postInstall
'';
meta = with lib; {
description = "A composite font of IBM Plex Mono, IBM Plex Sans JP and nerd-fonts";
homepage = "https://github.com/yuru7/PlemolJP";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ kachick ];
};
}

View File

@ -0,0 +1,30 @@
{ lib, stdenvNoCC, fetchzip }:
stdenvNoCC.mkDerivation rec {
pname = "plemoljp";
version = "1.7.1";
src = fetchzip {
url = "https://github.com/yuru7/PlemolJP/releases/download/v${version}/PlemolJP_v${version}.zip";
hash = "sha256-YH1c/2jk8QZNyPvzRZjxNHyNeci9tjn+oOW8xLd8kjk=";
};
installPhase = ''
runHook preInstall
install -Dm444 PlemolJP/*.ttf -t $out/share/fonts/truetype/${pname}
install -Dm444 PlemolJP35/*.ttf -t $out/share/fonts/truetype/${pname}-35
install -Dm444 PlemolJPConsole/*.ttf -t $out/share/fonts/truetype/${pname}-console
install -Dm444 PlemolJP35Console/*.ttf -t $out/share/fonts/truetype/${pname}-35console
runHook postInstall
'';
meta = with lib; {
description = "A composite font of IBM Plex Mono and IBM Plex Sans JP";
homepage = "https://github.com/yuru7/PlemolJP";
license = licenses.ofl;
platforms = platforms.all;
maintainers = with maintainers; [ kachick ];
};
}