depot/third_party/nixpkgs/pkgs/by-name/pl/plemoljp-nf/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
839 B
Nix

{ 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 = "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 ];
};
}